Skip to main content

Geodatabase Feature Class properties

Resumen

The Describe function returns the following properties for geodatabase feature classes. The Feature Class, Geodatabase Table, Editor Tracking Dataset, Table, and Dataset property groups are also supported.

For a geodatabase feature class, the Describe dataType property returns a value of "FeatureClass".

Propiedades

Propiedad Explicación Tipo de datos

areaFieldName

(Solo lectura)

The name of the geometry area field.

String

geometryStorage

(Solo lectura)

Returns the geometry field storage.

  • Binary—Esri Binary storage

  • LOB—Esri LOB storage

  • WKB—OGC Well Known Binary storage

  • ST—Spatial Type storage

  • SDO—Oracle Spatial Type storage

  • PostGIS—PostgreSQL / PostGIS storage

  • MSSQLGeometry—SQLServer / GEOMETRY storage

  • MSSQLGeography—SQLServer / GEOGRAPHY storage

Nota:

Returns the storage type for enterprise geodatabase feature classes only; for all other feature classes, returns an empty string.

String

isCompressed

(Solo lectura)

Returns True if the feature class is compressed. For more details on geodatabase compression see Compress file geodatabase data.

Boolean

lengthFieldName

(Solo lectura)

The name of the geometry length field.

String

representations

(Solo lectura)

A list of Describe objects for the representations associated with the feature class.

Describe

Muestra de código

Geodatabase feature class properties example

The following stand-alone script displays the geodatabase feature class properties:

import arcpy

# Create a Describe object from the GDB Feature Class
desc = arcpy.Describe("C:/data/chesapeake.gdb/chesapeake/bayshed_1")

# Print GDB FeatureClass properties
print("Area Field Name  : " + desc.areaFieldName)
print("Length Field Name: " + desc.lengthFieldName)