Class IndexedPointInAreaLocator
java.lang.Object
org.locationtech.jts.algorithm.locate.IndexedPointInAreaLocator
- All Implemented Interfaces:
PointOnGeometryLocator
Determines the
Location
of 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
.
invalid reference
Location.BOUNDARY
Polygonal
and LinearRing
geometries
are supported.
Thread-safe and immutable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
-
-
Constructor Details
-
IndexedPointInAreaLocator
- Parameters:
g
- the Geometry to locate in
-
-
Method Details
-
locate
- Specified by:
locate
in interfacePointOnGeometryLocator
- Parameters:
p
- the point to test- Returns:
- the location of the point in the geometry
-