Summary
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".
Properties
Property | Explanation | Data Type |
featureType (Read Only) | The feature type of the feature class.
| String |
hasM (Read Only) | Indicates whether the geometry is m-value enabled. | Boolean |
hasZ (Read Only) | Indicates whether the geometry is z-value enabled. | Boolean |
hasSpatialIndex (Read Only) | Indicates whether the feature class has a spatial index. | Boolean |
shapeFieldName (Read Only) | The name of the geometry field. | String |
shapeType (Read Only) | The geometry shape type.
| String |
splitModel (Read Only) | The split model that is set for the feature class.
| String |
Code sample
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))