Zusammenfassung
The Describe function returns the following properties for Geodatabase Tables. Editor Tracking Dataset Properties, Table Properties, and Dataset Properties are also supported.
A Geodatabase Table returns a dataType of "Table".
Eigenschaften
Eigenschaft | Erklärung | Datentyp |
aliasName (Nur lesen) | The alias name for the table. | String |
defaultSubtypeCode (Nur lesen) | The default subtype code. | String |
extensionProperties (Nur lesen) | The properties for the class extension. | Object |
globalIDFieldName (Nur lesen) | The name of the GlobalID field. | String |
hasGlobalID (Nur lesen) | Indicates whether the table has a GlobalID field. | Boolean |
modelName (Nur lesen) | The model name for the table. | String |
rasterFieldName (Nur lesen) | The name of the raster field. | String |
relationshipClassNames (Nur lesen) | The names of the Relationship Classes that this table participates in. | String |
subtypeFieldName (Nur lesen) | The name of the subtype field. | String |
versionedView (Nur lesen) | The name of a Versioned View for a versioned feature class. | String |
Codebeispiel
The following stand-alone script displays some properties of a GDB table.
import arcpy
# Create a Describe object from the GDB table.
#
desc = arcpy.Describe("C:/data/chesapeake.gdb/munich")
# Print GDB Table properties
#
print("%-22s %s" % ("AliasName:", desc.aliasName))
print("%-22s %s" % ("DefaultSubtypeCode:", desc.defaultSubtypeCode))
print("%-22s %s" % ("GlobalIDFieldName:", desc.globalIDFieldName))
print("%-22s %s" % ("ModelName:", desc.modelName))
print("%-22s %s" % ("RasterFieldName:", desc.rasterFieldName))
print("%-22s %s" % ("RelationshipClassNames:", desc.relationshipClassNames))