laptop and a wrench

漏洞

There are performance issues when using the 'size' property of the content class in ArcGIS API for Python.

上次发布: September 23, 2021 ArcGIS API for Python
漏洞 ID 编号 BUG-000117150
已提交October 1, 2018
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.4.1
操作系统Windows OS
操作系统版本2016 64 Bit
状态Will Not Be Addressed

附加信息

This is by design since the size is normally incorrect. The item class states to erase the property value in the __init__ of the item.

解决办法

The workaround is to assign the item in the loop to a new variable:

from arcgis.gis import GIS

gis = GIS("<portal/ArcGIS Online>","<user>","<password>")

content = gis.content.search(query="")

for c in content:

test = c

print(test.size)

重现步骤

漏洞 ID: BUG-000117150

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项