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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動