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
PreparedPolygons 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 TypeMethodDescriptionbooleanintersects(Geometry geom) Tests whether this PreparedPolygon intersects a given geometry.static booleanintersects(PreparedPolygon prep, Geometry geom) Computes the intersects predicate between aPreparedPolygonand 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 aPreparedPolygonand 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
-