laptop and a wrench

漏洞

The ArcGIS API for Python Item.tables property returns an empty array of tables when the item type is a map service.

ArcGIS API for Python
漏洞 ID 编号 BUG-000171384
已提交October 10, 2024
上次修改时间April 9, 2025
适用范围ArcGIS API for Python
找到的版本2.4
操作系统Windows OS
操作系统版本11.0 64 bit
修正版本2.4.1
状态Fixed

解决办法

Cast the item to FeatureLayerCollection:

from arcgis.features import FeatureLayerCollection

if not item is None:

  f_l_coll = FeatureLayerCollection.fromitem(item)

  print(f_l_coll.layers) # this prints the layers

  print(f_l_coll.tables) # this prints the tables

重现步骤

漏洞 ID: BUG-000171384

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项