Zusammenfassung
The Describe function returns the following properties for feature classes. The Table and Dataset property groups are also supported. The Editor Tracking property group is supported if editor tracking has been enabled for this feature class.
For a feature class, the Describe dataType property returns a value of "FeatureClass".
Eigenschaften
Eigenschaft | Erläuterung | Datentyp |
dateAccessed (Schreibgeschützt) | The date in UTC that the feature class was last accessed. | String |
dateCreated (Schreibgeschützt) | The date in UTC that the feature class was created. | String |
dateModified (Schreibgeschützt) | The date in UTC that the feature class was last modified. | String |
featureType (Schreibgeschützt) | The feature type of the feature class.
| String |
hasM (Schreibgeschützt) | Indicates whether the geometry is m-value enabled. | Boolean |
hasZ (Schreibgeschützt) | Indicates whether the geometry is z-value enabled. | Boolean |
hasSpatialIndex (Schreibgeschützt) | Indicates whether the feature class has a spatial index. Hinweis:Compressed datasets do not have a spatial index on the shape column and will return False. | Boolean |
shapeFieldName (Schreibgeschützt) | The name of the geometry field. | String |
shapeType (Schreibgeschützt) | The geometry shape type.
| String |
size (Schreibgeschützt) | The size of the feature class in bytes. | Integer |
splitModel (Schreibgeschützt) | The split model that is set for the feature class.
| String |
Codebeispiel
The following stand-alone script displays feature class properties:
import arcpy
# Create a Describe object from the feature class
#
desc = arcpy.Describe("C:/data/arch.dgn/Point")
# Print some feature class properties
#
print("Feature Type: " + desc.featureType)
print("Shape Type : " + desc.shapeType)
print("Spatial Index: " + str(desc.hasSpatialIndex))