Click or drag to resize

PolygonIsEqual Method

Compares two Polygon for equality. This will check for a matching SpatialReference and the content of Parts match. The order of parts must match too.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
public override bool IsEqual(
	Geometry other


Type: Esri.ArcGISRuntime.GeometryGeometry
A geometry to test for equality.

Return Value

Type: Boolean
Value to indicate if the two geometries are equal.

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:

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.

See Also