Class Validation
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
Validity according to ADR 0003: area by even-odd, OGC rules for crossings and touches. A missing closing point and the ring orientation are irrelevant; a ring in a hole is an island, not an error. Decisions are exact (orient2d).
public static class ValidationInheritance
Inherited Members
Methods
IsValid(IGeometry2D)
Whether the geometry is valid.
public static bool IsValid(this IGeometry2D geometry)Parameters
geometryIGeometry2D-
The geometry.
Returns
Exceptions
- ArgumentNullException
-
geometryisnull. - NotSupportedException
-
geometryis not a known geometry kind.
Validate(IGeometry2D)
Checks validity and returns all findings with their location.
public static ValidationResult Validate(this IGeometry2D geometry)Parameters
geometryIGeometry2D-
The geometry.
Returns
Exceptions
- ArgumentNullException
-
geometryisnull. - NotSupportedException
-
geometryis not a known geometry kind.