class PreparedPolygonCovers extends AbstractPreparedPolygonContains
PreparedPolygon
relative to all other Geometry
classes.
Uses short-circuit tests and indexing to improve performance.
It is not possible to short-circuit in all cases, in particular in the case where the test geometry touches the polygon linework. In this case full topology must be computed.
requireSomePointInInterior
prepPoly
Constructor and Description |
---|
PreparedPolygonCovers(PreparedPolygon prepPoly)
Creates an instance of this operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
covers(Geometry geom)
Tests whether this PreparedPolygon covers a given geometry.
|
static boolean |
covers(PreparedPolygon prep,
Geometry geom)
Computes the covers predicate between a
PreparedPolygon
and a Geometry . |
protected boolean |
fullTopologicalPredicate(Geometry geom)
Computes the full topological covers predicate.
|
eval
isAllTestComponentsInTarget, isAllTestComponentsInTargetInterior, isAnyTargetComponentInAreaTest, isAnyTestComponentInTarget, isAnyTestComponentInTargetInterior
public PreparedPolygonCovers(PreparedPolygon prepPoly)
prepPoly
- the PreparedPolygon to evaluatepublic static boolean covers(PreparedPolygon prep, Geometry geom)
PreparedPolygon
and a Geometry
.prep
- the prepared polygongeom
- a test geometrypublic boolean covers(Geometry geom)
geom
- the test geometryprotected boolean fullTopologicalPredicate(Geometry geom)
fullTopologicalPredicate
in class AbstractPreparedPolygonContains
geom
- the test geometry