Table of Contents

Class Locations

Namespace
SpatialNET
Assembly
SpatialNET.Extensions.dll

Where a point lies relative to a geometry (ADR 0022). Exact: the decisions use the input coordinates without a grid, like the predicates.

public static class Locations

Inheritance

Inherited Members

Methods

Locate(IGeometry2D, Coordinate)

The position of point relative to geometry: for a polygon by the even-odd rule over all rings (a hole is SpatialNET.Location.Outside, its ring SpatialNET.Location.Boundary), for a polyline SpatialNET.Location.Boundary at an end point by the mod-2 rule and SpatialNET.Location.Inside elsewhere on the line, for points SpatialNET.Location.Inside if the point is one of them. An empty geometry has no inside: SpatialNET.Location.Outside.

public static Location Locate(this IGeometry2D geometry, Coordinate point)

Parameters

geometry IGeometry2D

The geometry.

point Coordinate

The point; its coordinates must be finite.

Returns

Location

Exceptions

ArgumentNullException

geometry is null.

ArgumentOutOfRangeException

The coordinates of point are not finite.

NotSupportedException

geometry is not a known geometry kind.

Locate(IGeometry2D, IPoint2D)

The position of point relative to geometry: for a polygon by the even-odd rule over all rings (a hole is SpatialNET.Location.Outside, its ring SpatialNET.Location.Boundary), for a polyline SpatialNET.Location.Boundary at an end point by the mod-2 rule and SpatialNET.Location.Inside elsewhere on the line, for points SpatialNET.Location.Inside if the point is one of them. An empty geometry has no inside: SpatialNET.Location.Outside.

public static Location Locate(this IGeometry2D geometry, IPoint2D point)

Parameters

geometry IGeometry2D

The geometry.

point IPoint2D

The point; its coordinates must be finite.

Returns

Location

Exceptions

ArgumentNullException

geometry is null.

ArgumentOutOfRangeException

The coordinates of point are not finite.

NotSupportedException

geometry is not a known geometry kind.