ArcGIS Runtime SDK for .NET (WPF)

## GeometryIsEqual Method |

Compares two geometries for exact equality.
The types of geometry, order of points, all values, and the SpatialReference
must all be the equal.

Syntax

- other
- Type: Esri.ArcGISRuntime.GeometryGeometry

A geometry to test for equality.

true if this geometry is exactly equal to other; otherwise false.

Remarks

Various implementations of IsEqual(Geometry) method (i.e. IsEqual(Geometry), IsEqual(Geometry), IsEqual(Segment), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Segment)) provide the strictest comparison of two geometries to ensure that they are identical. For a slightly more relaxed comparison (one that does not take coordinate order into account), use Equals(Geometry, Geometry). The following table provides a comparison of these options:

geometryA.IsEqual(geometryB) | GeometryEngine.Equals(geometryA,geometryB) |
---|---|

Type | Type |

Shape | Shape |

Orientation | Orientation |

Order of Coordinates | -- |

See Also