GDB 表属性

摘要

Describe 函数可返回地理数据库表的以下属性。同时还支持表属性数据集属性

地理数据库表可返回“Table”dataType

属性

属性说明数据类型
aliasName
(只读)

The alias name for the table.

String
defaultSubtypeCode
(只读)

The default subtype code.

String
extensionProperties
(只读)

The properties for the class extension.

Object
globalIDFieldName
(只读)

The name of the GlobalID field.

String
hasGlobalID
(只读)

Indicates whether the table has a GlobalID field.

Boolean
modelName
(只读)

The model name for the table.

String
rasterFieldName
(只读)

The name of the raster field.

String
relationshipClassNames
(只读)

The names of the Relationship Classes that this table participates in.

String
subtypeFieldName
(只读)

The name of the subtype field.

String

代码示例

GDB Table properties example (stand-alone script)

The following stand-alone script displays some properties of a GDB table.

import arcpy

# Create a Describe object from the GDB table.
#
desc = arcpy.Describe("C:/data/chesapeake.gdb/munich")

# Print GDB Table properties
#
print "%-22s %s" % ("AliasName:", desc.aliasName)
print "%-22s %s" % ("DefaultSubtypeCode:", desc.defaultSubtypeCode)
print "%-22s %s" % ("GlobalIDFieldName:", desc.globalIDFieldName)
print "%-22s %s" % ("ModelName:", desc.modelName)
print "%-22s %s" % ("RasterFieldName:", desc.rasterFieldName)
print "%-22s %s" % ("RelationshipClassNames:", desc.relationshipClassNames)


7/10/2012