Error
Número de ID del error | BUG-000157211 |
---|---|
Enviado | April 4, 2023 |
Última modificación | June 5, 2024 |
Relacionado con | ArcGIS Pro |
Versión encontrada | 3.0.3 |
Sistema operativo | Windows OS |
Versión de sistema operativo | 10.0 64 Bit |
Versión corregida | 3.2 |
Estado | Fixed |
As a workaround there are two options:
Use the arcpy.Describe command with the following result:
desc = arcpy.Describe(lyr)
print(desc)
>>> <geoprocessing describe data object object at 0x0000029FAADF2D10>
Use the arpy.da.Describe in the following way:
aprx = arcpy.mp.ArcGISProject("CURRENT")
m = aprx.activeMap
lyr = m.listLayers()[0]
print(lyr.name)
>>> TEST_PY
desc_da = arcpy.da.Describe(lyr)
print(desc_da)
>>> {'catalogPath': 'TEST_PY', 'FIDSet': None, 'children': [{'catalogPath': '', 'FIDSet': None, 'aliasName': '', 'attributeRules': [], 'baseName': '', …
and so on
Obtener ayuda de expertos en ArcGIS
Descargar la aplicación de soporte de Esri