public class PointLocator extends Object
Location)
of a single point to a Geometry.
A BoundaryNodeRule may be specified
to control the evaluation of whether the point lies on the boundary or not
The default rule is to use the the SFS Boundary Determination Rule
Notes:
LinearRings do not enclose any area - points inside the ring are still in the EXTERIOR of the ring.
| Constructor and Description |
|---|
PointLocator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
intersects(Point point,
Geometry geometry)
Convenience method to test a point for intersection with
a Geometry
|
Location |
locate(Point point,
Geometry geometry)
Computes the topological relationship (
Location) of a single point
to a Geometry. |
public boolean intersects(Point point, Geometry geometry)
point - the coordinate to testgeometry - the Geometry to testtrue if the point is in the interior or boundary of the Geometrypublic Location locate(Point point, Geometry geometry)
Location) of a single point
to a Geometry.
It handles both single-element
and multi-element Geometries.
The algorithm for multi-part Geometries
takes into account the SFS Boundary Determination Rule.Location of the point relative to the input GeometryCopyright © 2015 Revolution Systems Inc.. All rights reserved.