GDB 要素类属性

摘要

Describe 函数可返回 Geodatabase 要素类的以下属性。同时还支持要素类属性GDB 表属性表属性数据集属性

Geodatabase 要素类可返回“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.

Object

代码示例

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


7/10/2012