Zusammenfassung
The Describe function returns the following properties for Feature Classes. Table Properties and Dataset Properties are also supported. Editor Tracking Properties are supported if editor tracking has been enabled for this feature class.
A Feature Class returns a dataType of "FeatureClass".
Eigenschaften
Eigenschaft | Erklärung | Datentyp |
featureType (Nur lesen) | The feature type of the feature class.
| String |
hasM (Nur lesen) | Indicates whether the geometry is m-value enabled. | Boolean |
hasZ (Nur lesen) | Indicates whether the geometry is z-value enabled. | Boolean |
hasSpatialIndex (Nur lesen) | Indicates whether the feature class has a spatial index. | Boolean |
shapeFieldName (Nur lesen) | The name of the geometry field. | String |
shapeType (Nur lesen) | The geometry shape type.
| String |
splitModel (Nur lesen) | The split model that is set for the feature class.
| String |
Codebeispiel
The following stand-alone script displays some 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))