public class IndexedPointInAreaLocator extends Object implements PointOnGeometryLocator
Location of Coordinatess relative to
a Polygonal geometry, using indexing for efficiency.
This algorithm is suitable for use in cases where
many points will be tested against a given area.
Thread-safe and immutable.| Modifier and Type | Class and Description |
|---|---|
static class |
IndexedPointInAreaLocator.IntervalIndexedGeometry |
| Constructor and Description |
|---|
IndexedPointInAreaLocator(Geometry geometry)
Creates a new locator for a given
Geometry |
| Modifier and Type | Method and Description |
|---|---|
static IndexedPointInAreaLocator |
get(Geometry geometry) |
Geometry |
getGeometry() |
GeometryFactory |
getGeometryFactory() |
IndexedPointInAreaLocator.IntervalIndexedGeometry |
getIndex() |
boolean |
intersects(Point point) |
Location |
locate(double x,
double y) |
Location |
locate(Point point)
|
public static IndexedPointInAreaLocator get(Geometry geometry)
public Geometry getGeometry()
public GeometryFactory getGeometryFactory()
public IndexedPointInAreaLocator.IntervalIndexedGeometry getIndex()
public boolean intersects(Point point)
public Location locate(double x, double y)
public Location locate(Point point)
locate in interface PointOnGeometryLocatorp - the point to testCopyright © 2015 Revolution Systems Inc.. All rights reserved.