com.vividsolutions.jts.algorithm.locate
Class IndexedPointInAreaLocator
java.lang.Object
com.vividsolutions.jts.algorithm.locate.IndexedPointInAreaLocator
- All Implemented Interfaces:
- PointOnGeometryLocator
public class IndexedPointInAreaLocator
- extends Object
- implements PointOnGeometryLocator
Determines the Location
of Coordinate
s 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.
- Author:
- Martin Davis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexedPointInAreaLocator
public IndexedPointInAreaLocator(Geometry g)
- Creates a new locator for a given
Geometry
- Parameters:
g
- the Geometry to locate in
locate
public int locate(Coordinate p)
- Determines the
Location
of a point in an areal Geometry
.
- Specified by:
locate
in interface PointOnGeometryLocator
- Parameters:
p
- the point to test
- Returns:
- the location of the point in the geometry
Copyright © 2012. All Rights Reserved.