要素类属性 (arcpy)
属性
属性 | 说明 | 数据类型 |
featureType (只读) |
The feature type of the feature class.
| String |
hasM (只读) |
Indicates if the geometry is m-value enabled. | Boolean |
hasZ (只读) |
Indicates if the geometry is z-value enabled. | Boolean |
hasSpatialIndex (只读) |
Indicates if the feature class has a spatial index. | Boolean |
shapeFieldName (只读) |
The name of the Shape field. | String |
shapeType (只读) |
The geometry shape type.
| String |
代码实例
FeatureClass properties example (stand-alone script)
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)
9/15/2013