Table of Contents

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 Validation

Inheritance

Inherited Members

Methods

IsValid(IGeometry2D)

Whether the geometry is valid.

public static bool IsValid(this IGeometry2D geometry)

Parameters

geometry IGeometry2D

The geometry.

Returns

bool

Exceptions

ArgumentNullException

geometry is null.

NotSupportedException

geometry is not a known geometry kind.

Validate(IGeometry2D)

Checks validity and returns all findings with their location.

public static ValidationResult Validate(this IGeometry2D geometry)

Parameters

geometry IGeometry2D

The geometry.

Returns

ValidationResult

Exceptions

ArgumentNullException

geometry is null.

NotSupportedException

geometry is not a known geometry kind.