laptop and a wrench

漏洞

The FeatureLayer class's query_top_features method returns the error message "AttributeError: 'FeatureLayer' object has no attribute '_query_df'".

ArcGIS API for Python
漏洞 ID 编号 BUG-000180522
已提交October 28, 2025
上次修改时间December 30, 2025
适用范围ArcGIS API for Python
找到的版本2.4.1
操作系统N/A
操作系统版本N/A
修正版本2.4.3
状态Fixed

解决办法

If a DataFrame is required, set as_df=False and use the .sdf property:

top = layer.query_top_features(param1, as_df=False).sdf

Leave off the .sdf property to get back a FeatureSet:

top = layer.query_top_features(param1, as_df=False)

重现步骤

漏洞 ID: BUG-000180522

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项