Propiedades de tabla de GDB
Resumen
La función Describir devuelve las siguientes propiedades para las Tablas de geodatabase. Las Propiedades de la tabla y las Propiedades del dataset también son compatibles.
Una tabla de geodatabase devuelve el tipo de datos de "Tabla".
Propiedades
| Propiedad | Explicación | Tipo de datos |
| aliasName (Sólo lectura) |
The alias name for the table. | String |
| defaultSubtypeCode (Sólo lectura) |
The default subtype code. | String |
| extensionProperties (Sólo lectura) | The properties for the class extension. | Object |
| globalIDFieldName (Sólo lectura) |
The name of the GlobalID field. | String |
| hasGlobalID (Sólo lectura) |
Indicates whether the table has a GlobalID field. | Boolean |
| modelName (Sólo lectura) |
The model name for the table. | String |
| rasterFieldName (Sólo lectura) |
The name of the raster field. | String |
| relationshipClassNames (Sólo lectura) |
The names of the Relationship Classes that this table participates in. | String |
| subtypeFieldName (Sólo lectura) |
The name of the subtype field. | String |
Ejemplo de código
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