ArcInfo 表属性

摘要

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

ArcInfo 表可返回“ArcInfoTable”dataType

属性

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

A Python list of items in the table. Each entry in the list is an ArcInfo Item Properties describe object, representing one item in the table.

Object

代码示例

ArcInfo Table properties example (stand-alone script)

The following stand-alone script displays a Table property from an ArcInfo Table. It then gets a list of ArcInfo items and prints the name of each item.

import arcpy

# Create a Describe object from the ArcInfo Table.
#
desc = arcpy.Describe("C:/data/crimefreq")

# Print a Table property from the ArcInfo Table.
#
#print "HasOID:       " + desc.hasOID
print "%-11s %s" % ("HasOID:", desc.hasOID)


# Get the itemSet from the ArcInfo Table and
# print the name and item type of each item.
#
iSet = desc.itemSet
for item in iSet:
    print "%-12s %s" % ("\nName:", item.name)
    print "%-11s %s" % ("Item type:", item.itemType)


7/10/2012