laptop and a wrench

漏洞

For multipart polygons, Geometry.IsEqual() always returns false for the identical geometry.

上次发布: May 5, 2020 ArcGIS Runtime SDK
漏洞 ID 编号 BUG-000130341
已提交April 23, 2020
上次修改时间June 5, 2024
适用范围ArcGIS Runtime SDK
找到的版本100.7
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Non-Reproducible

附加信息

There is about a 2-meter difference in the rounding error when comparing the two JSON texts using WinMerge. For a more accurate comparison use the GeometryEngine.Equals() method. Refer to https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Geometry.GeometryEngine.Equals.html for more info. As mentioned in the API Reference, the IsEqual(Geometry) method provides the strictest comparison of two geometries to ensure that they are identical. For a slightly more relaxed comparison, such as in this case where there is a minor precision difference, use GeometryEngine.Equals. Adjusting tolerance can get the desired results. For example, in the reproducer JSON, using the GeometryEngine.Equals method and increasing the tolerance to 2.5 returns 'true' for geometry comparison.

重现步骤

漏洞 ID: BUG-000130341

软件:

  • ArcGIS Runtime SDK

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项