package locate
- Alphabetic
- Public
- Protected
Type Members
- class IndexedPointInAreaLocator extends PointOnGeometryLocator
- trait PointOnGeometryLocator extends AnyRef
An interface for classes which determine the {link Location} of points in a {link Geometry}.
- class SimplePointInAreaLocator extends PointOnGeometryLocator
Value Members
- object IndexedPointInAreaLocator
Determines the {link Location} of {link Coordinate}s relative to an areal geometry, using indexing for efficiency.
Determines the {link Location} of {link Coordinate}s 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.
The Location is computed precisely, in that points located on the geometry boundary or segments will return {link Location.BOUNDARY}.
{link Polygonal} and {link LinearRing} geometries are supported.
The index is lazy-loaded, which allows creating instances even if they are not used.
Thread-safe and immutable.
- object SimplePointInAreaLocator
Computes the location of points relative to a {link Polygonal} {link Geometry}, using a simple O(n) algorithm.
Computes the location of points relative to a {link Polygonal} {link Geometry}, using a simple O(n) algorithm.
The algorithm used reports if a point lies in the interior, exterior, or exactly on the boundary of the Geometry.
Instance methods are provided to implement the interface {link PointInAreaLocator}. However, they provide no performance advantage over the class methods.
This algorithm is suitable for use in cases where only a few points will be tested. If many points will be tested, {link IndexedPointInAreaLocator} may provide better performance.
- Version
1.7