Method IsEqual
IsEqual(Geometry)
Compares two MapPoint for equality. This checks for a matching SpatialReference and coordinates for a match.
Declaration
public override bool IsEqual(Geometry other)
Parameters
Type | Name | Description |
---|---|---|
Geometry | other | A geometry to test for equality. |
Returns
Type | Description |
---|---|
System.Boolean | Value to indicate if the two geometries are equal. |
Overrides
Remarks
The various geometry IsEqual Methods (i.e. IsEqual(Geometry), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Segment), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Geometry), IsEqual(Segment)) provide the most strict comparison of two geometries to ensure they are equal (aka. identical). You can also use the Equals(Geometry, Geometry) Method but the test for ensuring that two geometries are equal (aka. identical) is not quite as strict. The following table provides a comparison of the geometry comparison options:
geometryA.IsEqual(geometryB) | GeometryEngine.Equals(geometryA,geometryB) |
---|---|
Type | Type |
Shape | Shape |
Orientation | Orientation |
Order of Coordinates | -- |
In a nutshell, if you need to ensure that the 'Order of Coordinates' that comprise your geometries are exactly the same, use the various geometry IsEqual Methods.
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 |