laptop and a wrench

Erro

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

Última Publicação: May 5, 2020 ArcGIS Runtime SDK
Número de ID do Erro BUG-000130341
EnviadoApril 23, 2020
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime SDK
Versão encontrada100.7
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusNon-Reproducible

Informações Adicionais

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.

Etapas para Reproduzir

ID do Erro: BUG-000130341

Software:

  • ArcGIS Runtime SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download