class PreparedLineStringIntersects
extends java.lang.Object
PreparedLineString
relative to other Geometry
classes.
Uses short-circuit tests and indexing to improve performance.Modifier and Type | Field and Description |
---|---|
protected PreparedLineString |
prepLine |
Constructor and Description |
---|
PreparedLineStringIntersects(PreparedLineString prepLine)
Creates an instance of this operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
intersects(Geometry geom)
Tests whether this geometry intersects a given geometry.
|
static boolean |
intersects(PreparedLineString prep,
Geometry geom)
Computes the intersects predicate between a
PreparedLineString
and a Geometry . |
protected boolean |
isAnyTestPointInTarget(Geometry testGeom)
Tests whether any representative point of the test Geometry intersects
the target geometry.
|
protected PreparedLineString prepLine
public PreparedLineStringIntersects(PreparedLineString prepLine)
prepPoly
- the target PreparedLineStringpublic static boolean intersects(PreparedLineString prep, Geometry geom)
PreparedLineString
and a Geometry
.prep
- the prepared linestringgeom
- a test geometrypublic boolean intersects(Geometry geom)
geom
- the test geometryprotected boolean isAnyTestPointInTarget(Geometry testGeom)
geom
- a Puntal geometry to test