要素类属性 (arcpy)
属性
| 属性 | 说明 | 数据类型 | 
| featureType (只读) | 要素类的要素类型。 
 | String | 
| hasM (只读) | 指示几何是否启用 m 值。 | Boolean | 
| hasZ (只读) | 指示几何是否启用 z 值。 | Boolean | 
| hasSpatialIndex (只读) | 指示要素类是否具有空间索引。 | Boolean | 
| shapeFieldName (只读) | Shape 字段的名称。 | String | 
| shapeType (只读) | 几何形状类型。 
 | String | 
代码实例
要素类属性示例(独立脚本)
以下独立脚本显示了一些要素类属性。
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)
5/10/2014