public class PointLocator extends Object
Location) of a single point to a
BoundaryNodeRulemay 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
LinearRings do not enclose any area - points inside the ring are still in the EXTERIOR of the ring.
|Constructor and Description|
|Modifier and Type||Method and Description|
Convenience method to test a point for intersection with a Geometry
Computes the topological relationship (
public PointLocator(BoundaryNodeRule boundaryRule)
public boolean intersects(Coordinate p, Geometry geom)
p- the coordinate to test
geom- the Geometry to test
trueif the point is in the interior or boundary of the Geometry
public int locate(Coordinate p, Geometry geom)
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.
Locationof the point relative to the input Geometry
Copyright © 2020. All rights reserved.