Propiedades de elemento de ArcInfo
Resumen
La función Describir devuelve las siguientes propiedades para los elementos de ArcInfo. Se accede a los elementos de ArcInfo desde la propiedad itemSet de Propiedades de la tabla de ArcInfo.
Un elemento de ArcInfo devuelve un tipo de datos de "ArcInfoItem".
Propiedades
Propiedad | Explicación | Tipo de datos |
alternateName (Sólo lectura) |
The alternate name is another name you can use to refer to the item. It sometimes contains abbreviated names for items that otherwise have long descriptive names. Long item names often help for documentation purposes. Shorter names may be convenient for ad hoc usage. | String |
isIndexed (Sólo lectura) | True if the item is indexed. Indexed items speed up selection operations on large INFO files. | Boolean |
isPseudo (Sólo lectura) | True if the item is a pseudo item. | Boolean |
isRedefined (Sólo lectura) | True if it is a redefined item. Redefined items can be subsets of regular items or can span multiple regular items. | Boolean |
itemType (Sólo lectura) |
The data type of the item. One of: Binary, Character, Date, Floating, Integer, Number, OID. | String |
numberDecimals (Sólo lectura) |
The number of digits to the right of the decimal place. This is only for item types which hold decimal numbers. | Integer |
outputWidth (Sólo lectura) |
The number of spaces used to display the item's values. | Integer |
startPosition (Sólo lectura) |
The starting position of a redefined item. | Integer |
width (Sólo lectura) |
The number of spaces (or bytes) used to store the item's values. | Integer |
Ejemplo de código
The following stand-alone script displays properties from all the ArcInfo Items in an ArcInfo Table.
import arcpy # Create a list of Describe objects from the ArcInfo Table. # descList = arcpy.Describe("C:/data/crimefreq").itemSet # Print properties about each item in the itemSet # for item in descList: print item.name print "%-22s %s" % (" Alternate name:", item.alternateName) print "%-22s %s" % (" Is indexed:", item.isIndexed) print "%-22s %s" % (" Is pseudo:", item.isPseudo) print "%-22s %s" % (" Is redefined:", item.isRedefined) print "%-22s %s" % (" Item type:", item.itemType) print "%-22s %s" % (" Number of decimals:", item.numberDecimals) print "%-22s %s" % (" Output width:", item.outputWidth) print "%-22s %s" % (" Start position:", item.startPosition) print "%-22s %s" % (" Width:", item.width)