ArcInfo Workstation 表属性

摘要

Describe 函数可返回 ArcInfo Workstation INFO 表的以下属性。还支持表属性和数据集属性。

INFO 表可返回 "ArcInfoTable" 的 dataType。

属性

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

表中项目的 Python 列表。列表中的每个条目都是 ArcInfo Workstation 项目属性描述对象,代表着表中的一个项目。

Object

代码示例

ArcInfo Workstation 表属性示例(独立脚本)

以下独立脚本显示了 ArcInfo Workstation 表的表属性。该脚本随后获得 ArcInfo Workstation 项目列表,并打印每一项目的名称。

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))

在本主题中