Zusammenfassung
Returns a dictionary with multiple properties, such as data type, fields, indexes, and many others. The dictionary's keys are dynamic, meaning that depending on what data type is described, different properties will be available for use.
Describe keys are organized into a series of property groups. Any particular dataset will acquire the properties of at least one of these groups. For instance, if describing a geodatabase feature class, you could access properties from the Geodatabase Feature Class, Feature Class, Table, and Dataset property groups. All data, regardless of the data type, will always acquire the generic Describe object properties.
Diskussion
Many data types include properties from other property groups. For instance, if describing a geodatabase feature class, you could access properties from the Geodatabase Feature Class, Feature Class, Table, and Dataset property groups.
- Eigenschaften des Describe-Objekts
- Eigenschaften des ArcInfo Workstation-Elements
- ArcInfo Workstation-Tabellen
- Attributregeleigenschaften
- BIM-Datei-Workspace-Eigenschaften
- CAD-Zeichnungs-Dataset-Eigenschaften
- CAD-Feature-Class-Eigenschaften
- Coverage-Feature-Class-Eigenschaften
- Coverage-Eigenschaften
- Dataset-Eigenschaften
- dBASE-Tabelleneigenschaften
- Editor-Tracking-Eigenschaften
- Feature-Class-Eigenschaften
- Feldgruppeneigenschaften
- Dateieigenschaften
- Ordnereigenschaften
- Geodatabase-Feature-Class-Eigenschaften
- Geodatabase-Tabelleneigenschaften
- Eigenschaften von "Geometrisches Netzwerk"
- Eigenschaften geostatistischer Layer
- LAS-Dataset-Eigenschaften
- Layer-Eigenschaften
- Location-Referencing-Dataset-Eigenschaften
- Kartendokumenteigenschaften
- Mosaik-Dataset-Eigenschaften
- Network Analyst-Layer-Eigenschaften
- Netzwerk-Dataset-Eigenschaften
- Parcel-Fabric-Eigenschaften
- Parcel Fabric For ArcMap-Eigenschaften
- Projektionsdateieigenschaften
- Raster-Band-Eigenschaften
- Raster-Katalog-Eigenschaften
- Raster-Dataset-Eigenschaften
- Datensatz- und Feature-Set-Eigenschaften
- Beziehungsklasseneigenschaften
- Repräsentationsklasseneigenschaften
- Schematic-Dataset-Eigenschaften
- Schematic-Diagrammeigenschaften
- Schematic-Ordnereigenschaften
- SDC-Feature-Class-Eigenschaften
- Shapefile-Feature-Class-Eigenschaften
- Tabelleneigenschaften
- Tabellensichteigenschaften
- Textdateieigenschaften
- TIN-Eigenschaften
- Werkzeugeigenschaften
- Toolbox-Eigenschaften
- Topologie-Eigenschaften
- Verfolgungsnetzeigenschaften
- Versorgungsnetzeigenschaften
- VPF-Coverage-Eigenschaften
- VPF-Feature-Class-Eigenschaften
- VPF-Tabelleneigenschaften
- Workspace-Eigenschaften
Syntax
Describe (value, {datatype})
Parameter | Erläuterung | Datentyp |
value | The specified data element or geoprocessing object to describe. | String |
datatype | The type of data. This is only necessary when naming conflicts exists, for example, if a geodatabase contains a feature dataset (FeatureDataset) and a feature class (FeatureClass) with the same name. In this case, the data type is used to clarify which dataset you want to describe. (Der Standardwert ist None) | String |
Datentyp | Erläuterung |
Dictionary | Returns a dictionary with keys detailing the data element described. |
Codebeispiel
Access a specific property using the key value.
import arcpy
path = "C:\\Data\\Venice.gdb\\VeniceStructures"
desc = arcpy.da.Describe(path)
field_names = [field.name for field in desc["fields"]]
if "YEAR_BUILT" not in field_names:
arcpy.management.AddField(path, "YEAR_BUILT", "SHORT")
Display the returned Describe dictionary to look at all available properties.
import arcpy
from pprint import pprint
path = "C:\\Data\\Venice.gdb\\VeniceStructures"
desc = arcpy.da.Describe(path)
pprint(desc)