Show / Hide Table of Contents

Method IsEqual

IsEqual(Geometry)

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

Declaration
public abstract bool IsEqual(Geometry other)
Parameters
Type Name Description
Geometry other

A geometry to test for equality.

Returns
Type Description
System.Boolean

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
Equals(Geometry, Geometry)
Equals(Geometry, System.Double)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.