漏洞
漏洞 ID 编号 | BUG-000157211 |
---|---|
已提交 | April 4, 2023 |
上次修改时间 | June 5, 2024 |
适用范围 | ArcGIS Pro |
找到的版本 | 3.0.3 |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
修正版本 | 3.2 |
状态 | 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
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序