| Bug-ID-Nummer |
BUG-000120523 |
| Eingereicht | March 4, 2019 |
| Zuletzt geändert | June 5, 2024 |
| Gilt für | ArcGIS API for Python |
| Gefunden in Version | 1.5.3 |
| Betriebssystem | N/A |
| Betriebssystemversion | N/A |
| Status | Will Not Be Addressed
Das Entwicklungsteam hat das Problem bzw. die Anforderung sorgfältig geprüft und ist zu dem Schluss gekommen, es nicht zu beheben bzw. keine weiteren Schritte zu unternehmen. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
|
Zusätzliche Informationen
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.
Workaround
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)
Schritte zur Reproduzierung