public class SimplePointInAreaLocator extends Object implements PointOnGeometryLocator
Polygonal Geometry,
using a simple O(n) algorithm.
This algorithm is suitable for use in cases where
only one or a few points will be tested against a given area.
The algorithm used is only guaranteed to return correct results for points which are not on the boundary of the Geometry.
public SimplePointInAreaLocator(Geometry geom)
public static Location locate(Point p, Geometry geom)
Location of a point in an areal Geometry.
Currently this will never return a value of BOUNDARY.p - the point to testgeom - the areal geometry to testpublic Location locate(Point p)
PointOnGeometryLocatorlocate in interface PointOnGeometryLocatorp - the point to testCopyright © 2015 Revolution Systems Inc.. All rights reserved.