GDB 要素类属性 (arcpy)
摘要
Describe 函数将返回地理数据库要素类的以下属性。同时还支持要素类属性、GDB 表属性、编辑器追踪数据集属性、表属性以及数据集属性。
地理数据库要素类将返回 "FeatureClass" 的 dataType。
属性
属性 | 说明 | 数据类型 |
areaFieldName (只读) |
The name of the geometry area field. | String |
lengthFieldName (只读) |
The name of the geometry length field. | String |
representations (只读) | A list of Describe objects for the representations associated with the feature class. | Describe |
代码实例
GDB FeatureClass properties example (stand-alone script)
The following stand-alone script displays the GDB FeatureClass properties.
import arcpy
# Create a Describe object from the GDB Feature Class
#
desc = arcpy.Describe("C:/data/chesapeake.gdb/chesapeake/bayshed_1")
# Print GDB FeatureClass properties
#
print "Area Field Name : " + desc.areaFieldName
print "Length Field Name: " + desc.lengthFieldName
9/15/2013