ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS for Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

RelationshipClass properties

  • Zusammenfassung
  • Eigenschaften
  • Codebeispiel

Zusammenfassung

The Describe function returns the following properties for Relationship Classes. GDB Table Properties, Table Properties, and Dataset Properties are also supported.

Learn more about Relationship class properties

A Relationship Class returns a dataType of "RelationshipClass".

Eigenschaften

EigenschaftErklärungDatentyp
backwardPathLabel
(Nur lesen)

The backward path label for the relationship class.

String
cardinality
(Nur lesen)

The cardinality for the relationship class.

  • OneToOne
  • OneToMany
  • ManyToMany
String
classKey
(Nur lesen)

Class key used for the relationship class.

  • Undefined
  • ClassID
  • ClassCode
String
destinationClassKeys
(Nur lesen)

A list of tuples, with the object key name, and key role (DestinationPrimary, DestinationForeign).

tuple
destinationClassNames
(Nur lesen)

A list containing the names of the destination classes.

String
forwardPathLabel
(Nur lesen)

The forward path label for the relationship class.

String
isAttachmentRelationship
(Nur lesen)

Indicates if the relationship class represents a table attachment.

Boolean
isAttributed
(Nur lesen)

Indicates if the relationships in this relationship class have attributes.

Boolean
isComposite
(Nur lesen)

Indicates if the relationship class represents a composite relationship in which the origin object class represents the composite object.

Boolean
isReflexive
(Nur lesen)

Indicates if the origin and destination sets intersect.

Boolean
keyType
(Nur lesen)

Key type for the relationship class.

  • Single
  • Dual
String
notification
(Nur lesen)

The notification direction for the relationship class.

  • None
  • Forward
  • Backward
  • Both
String
originClassNames
(Nur lesen)

A list containing the names of the origin classes.

String
originClassKeys
(Nur lesen)

A list of tuples, with the object key name, and key role (OriginPrimary, OriginForeign).

tuple
relationshipRules
(Nur lesen)

The relationship rules that apply to this relationship class.

Object

Codebeispiel

RelationshipClass properties example (stand-alone script)

The following stand-alone script displays properties for a relationship class.

import arcpy

# Create a Describe object
#
desc = arcpy.Describe("C:/data/moad.gdb/West/bapCompAttRel")

# Print relationship class properties
#
print "%-25s %s" % ("Backward Path Label:", desc.backwardPathLabel)
print "%-25s %s" % ("Cardinality:", desc.cardinality)
print "%-25s %s" % ("Class key:", desc.classKey)
print "%-25s %s" % ("Destination Class Names:", desc.destinationClassNames)
print "%-25s %s" % ("Forward Path Label:", desc.forwardPathLabel) 
print "%-25s %s" % ("Is Attributed:", desc.isAttributed)
print "%-25s %s" % ("Is Composite:", desc.isComposite) 
print "%-25s %s" % ("Is Reflexive:", desc.isReflexive)
print "%-25s %s" % ("Key Type:", desc.keyType)
print "%-25s %s" % ("Notification Direction:", desc.notification)
print "%-25s %s" % ("Origin Class Names:", desc.originClassNames)

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS Plattform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2019 Esri. | Datenschutz | Rechtliches