Geodatabase Feature Class properties
Résumé
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".
Propriétés
| Propriété | Explication | Type de données |
|---|---|---|
|
areaFieldName (Lecture seule) |
The name of the geometry area field. |
String |
|
geometryStorage (Lecture seule) |
Returns the geometry field storage.
Remarque :Returns the storage type for enterprise geodatabase feature classes only; for all other feature classes, returns an empty string. |
String |
|
isCompressed (Lecture seule) |
Returns |
Boolean |
|
lengthFieldName (Lecture seule) |
The name of the geometry length field. |
String |
|
representations (Lecture seule) |
A list of |
Describe |
Exemple de code
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)