ArcInfo Workstation Table properties (arcpy)

サマリ

The Describe function returns the following properties for ArcInfo Workstation INFO Tables. Table Properties and Dataset Properties are also supported.

An INFO Table returns a dataType of "ArcInfoTable".

特性

プロパティ説明データ タイプ
itemSet
(読み取り専用)

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

Object

コードのサンプル

ArcInfo Workstation Table properties example (stand-alone script)

The following stand-alone script displays a Table property from an ArcInfo Workstation Table. It then gets a list of ArcInfo Workstation 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)
4/26/2014