laptop and a wrench

Error

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

Última publicación: May 5, 2020 ArcGIS Runtime SDK
Número de ID del error BUG-000130341
EnviadoApril 23, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS Runtime SDK
Versión encontrada100.7
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoNon-Reproducible

Información adicional

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.

Pasos para reproducir

ID del error: BUG-000130341

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga