Package org.locationtech.jts.geom.prep
Class PreparedPolygonIntersects
java.lang.Object
org.locationtech.jts.geom.prep.PreparedPolygonPredicate
org.locationtech.jts.geom.prep.PreparedPolygonIntersects
Computes the intersects spatial relationship predicate for
PreparedPolygon
s relative to all other Geometry
classes. Uses
short-circuit tests and indexing to improve performance.-
Field Summary
Fields inherited from class org.locationtech.jts.geom.prep.PreparedPolygonPredicate
prepPoly
-
Constructor Summary
ConstructorsConstructorDescriptionPreparedPolygonIntersects
(PreparedPolygon prepPoly) Creates an instance of this operation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
intersects
(Geometry geom) Tests whether this PreparedPolygon intersects a given geometry.static boolean
intersects
(PreparedPolygon prep, Geometry geom) Computes the intersects predicate between aPreparedPolygon
and aGeometry
.Methods inherited from class org.locationtech.jts.geom.prep.PreparedPolygonPredicate
isAllTestComponentsInTarget, isAllTestComponentsInTargetInterior, isAnyTargetComponentInAreaTest, isAnyTestComponentInTarget, isAnyTestComponentInTargetInterior
-
Constructor Details
-
PreparedPolygonIntersects
Creates an instance of this operation.- Parameters:
prepPoly
- the PreparedPolygon to evaluate
-
-
Method Details
-
intersects
Computes the intersects predicate between aPreparedPolygon
and aGeometry
.- Parameters:
prep
- the prepared polygongeom
- a test geometry- Returns:
- true if the polygon intersects the geometry
-
intersects
Tests whether this PreparedPolygon intersects a given geometry.- Parameters:
geom
- the test geometry- Returns:
- true if the test geometry intersects
-