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 |
|
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
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |