Bug ID Number |
BUG-000120522 |
Submitted | March 4, 2019 |
Last Modified | June 29, 2025 |
Applies to | ArcGIS Pro |
Version found | 2.3 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Version Fixed | 1.6.1 |
Status | Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
|
Workaround
There are two possible workarounds for this issue:
- Use the corresponding operations from the arcgis.geometry.filters module.
Example:import arcgisfrom arcgis import GISfrom arcgis.geometry import filtersagol = GIS("https://www.arcgis.com", "User", "Pass")# Search for a Feature Layerdef search_layer(layer_name): search_results = agol.content.search(layer_name, item_type='Feature Layer') item = search_results[0] geofeatures = item.layers[0] return geofeaturessearch_pnt = search_layer('worldEQ')search_poly = search_layer('poly_elev')query_pnt = search_pnt.query(where='OBJECTID=63')query_poly = search_pnt.query(where='OBJECTID=2')point_feat = query_pnt.features[0].geometrypoly_feat = query_poly.features[0].geometryprint(search_poly.query(where='1=1', return_ids_only=True, geometry_filter=filters.intersects(point_feat)))print(search_poly.query(where='1=1', return_ids_only=True, geometry_filter=filters.within(point_feat)))print(search_pnt.query(where='1=1', return_ids_only=True, geometry_filter=filters.contains(poly_feat)))
- Make requests to the ArcGIS REST API directly.
Steps to Reproduce