Show / Hide Table of Contents

Method IsSimple

IsSimple(Geometry)

Test if the geometry is topologically simple.

Declaration
public static bool IsSimple(this Geometry geometry)
Parameters
Type Name Description
Geometry geometry

The geometry object.

Returns
Type Description
System.Boolean

true if the geometry object is simple, false otherwise.

Remarks

MapPoint geometry is always simple.

Multipoint geometries cannot have any points with exactly equal x and y. The tolerance is not taken into account.

Polyline geometries cannot have degenerate segments. When the polyline has no z, the degenerate segments are those that have a length in the xy plane less than or equal to the tolerance. When the polyline has z, the degenerate segments are those that are shorter than the tolerance in the xy plane, and the change in the z-value along the segment is less than or equal to the z-tolerance.

Polygon geometries are considered simple if the following is true:

  • Exterior rings are clockwise, and interior rings (holes) are counterclockwise.
  • Rings can touch other rings in a finite number of points.
  • Rings can be self-tangent in a finite number of points.
  • No segment length is zero.
  • Each path contains at least three non-equal vertices.
  • No empty paths are allowed.
  • Order of rings does not matter.

Supports true curves.

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.