|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.util.algorithm2D.PointLocator
public class PointLocator
Computes the topological relationship (Location
) of a single point
to a Geometry
. The algorithm obeys the SFS Boundary Determination
Rule to determine whether the point lies on the boundary or not.
Notes:
LinearRing
s do not enclose any area - points inside the ring
are still in the EXTERIOR of the ring.
Constructor Summary | |
---|---|
PointLocator()
|
Method Summary | |
---|---|
boolean |
intersects(Coordinate p,
GeometryImpl geom)
Convenience method to test a point for intersection with a Geometry |
int |
locate(Coordinate p,
GeometryImpl geom)
Computes the topological relationship ( Location ) of a single
point to a Geometry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointLocator()
Method Detail |
---|
public boolean intersects(Coordinate p, GeometryImpl geom)
p
- the coordinate to testgeom
- the Geometry to test
true
if the point is in the interior or boundary
of the Geometrypublic int locate(Coordinate p, GeometryImpl 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.
Location
of the point relative to the input Geometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |