laptop and a wrench

漏洞

Analysis variables in the GeoEnrichment service are not acknowledged using ArcGIS API for Python.

上次发布: September 22, 2021 ArcGIS API for Python
漏洞 ID 编号 BUG-000120523
已提交March 4, 2019
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.5.3
操作系统N/A
操作系统版本N/A
状态Will Not Be Addressed

附加信息

This is a misunderstanding of how the tool works and it need to be clarified. What the user is doing is requesting inputs into two optional parameters. If you know what columns you need specifically, you specify the analysis_variables. If you do not know what columns you need, or you want all variables from a data collection, you specify data_collections. What is happening in this case is that the user is specifying both. This means that they are 1. getting their variables the user wants, then 2. they are requesting the whole data collection because they specify the data_collection variable as well. To fix the issue change the code to: result = enrich(study_areas=[redlands], analysis_variables=variable_list , return_geometry=False ) The team has also updated the GeoEnrichment doc as well.

解决办法

When using this function, the user requests information with two optional parameters. If users know what columns are needed specifically, specify the analysis_variables. If users do not know what columns are needed, or users want all variables from a data collection, specify data_collections.

What is documented in the bug is that the script is specifying both. This means that they are getting their variables the user wants, then they are requesting the whole data collection because they specify the data_collection variable as well.

To fix this issue, change the code to:

result = enrich(study_areas=[redlands], analysis_variables=variable_list , return_geometry=False)

重现步骤

漏洞 ID: BUG-000120523

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项