Package org.locationtech.jts.geom.prep
Class PreparedLineStringIntersects
java.lang.Object
org.locationtech.jts.geom.prep.PreparedLineStringIntersects
Computes the intersects spatial relationship predicate
for a target
PreparedLineString
relative to other Geometry
classes.
Uses short-circuit tests and indexing to improve performance.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of this operation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
intersects
(Geometry geom) Tests whether this geometry intersects a given geometry.static boolean
intersects
(PreparedLineString prep, Geometry geom) Computes the intersects predicate between aPreparedLineString
and aGeometry
.protected boolean
isAnyTestPointInTarget
(Geometry testGeom) Tests whether any representative point of the test Geometry intersects the target geometry.
-
Field Details
-
prepLine
-
-
Constructor Details
-
PreparedLineStringIntersects
Creates an instance of this operation.- Parameters:
prepPoly
- the target PreparedLineString
-
-
Method Details
-
intersects
Computes the intersects predicate between aPreparedLineString
and aGeometry
.- Parameters:
prep
- the prepared linestringgeom
- a test geometry- Returns:
- true if the linestring intersects the geometry
-
intersects
Tests whether this geometry intersects a given geometry.- Parameters:
geom
- the test geometry- Returns:
- true if the test geometry intersects
-
isAnyTestPointInTarget
Tests whether any representative point of the test Geometry intersects the target geometry. Only handles test geometries which are Puntal (dimension 0)- Parameters:
geom
- a Puntal geometry to test- Returns:
- true if any point of the argument intersects the prepared geometry
-