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 LocationsInheritance
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
geometryIGeometry2D-
The geometry.
pointCoordinate-
The point; its coordinates must be finite.
Returns
Exceptions
- ArgumentNullException
-
geometryisnull. - ArgumentOutOfRangeException
-
The coordinates of
pointare not finite. - NotSupportedException
-
geometryis 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
geometryIGeometry2D-
The geometry.
pointIPoint2D-
The point; its coordinates must be finite.
Returns
Exceptions
- ArgumentNullException
-
geometryisnull. - ArgumentOutOfRangeException
-
The coordinates of
pointare not finite. - NotSupportedException
-
geometryis not a known geometry kind.