laptop and a wrench

漏洞

Multiple arcgis.geometry.Geometry methods return 'None' for valid geometries.

上次发布: March 12, 2019 ArcGIS Pro
漏洞 ID 编号 BUG-000120522
已提交March 4, 2019
上次修改时间June 29, 2025
适用范围ArcGIS Pro
找到的版本2.3
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本1.6.1
状态Fixed

解决办法

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.

重现步骤

漏洞 ID: BUG-000120522

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项