Class IndexedPointInAreaLocator
Determines the Location of Coordinates relative to an areal geometry, using indexing for efficiency. This algorithm is suitable for use in cases where many points will be tested against a given area.
TheLocation is computed precisely, th that points
located on the geometry boundary or segments will
return Boundary.
IPolygonal and LinearRing geometries are supported.
The index is lazy-loaded, which allows
creating instances even if they are not used.
Thread-safe and immutable.
Implements
Inherited Members
Namespace: NetTopologySuite.Algorithm.Locate
Assembly: NetTopologySuite.dll
Syntax
public class IndexedPointInAreaLocator : IPointOnGeometryLocator
Constructors
| Edit this page View SourceIndexedPointInAreaLocator(Geometry)
Creates a new locator for a given Geometry. Geometries containing IPolygonals and LinearRing geometries are supported
Declaration
public IndexedPointInAreaLocator(Geometry g)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g | The Geometry to locate in |
Methods
| Edit this page View SourceLocate(Coordinate)
Declaration
public Location Locate(Coordinate p)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | p | The point to test |
Returns
| Type | Description |
|---|---|
| Location | The location of the point in the geometry |