com.vividsolutions.jts.geom.prep
public class PreparedPolygonContains 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.
requireSomePointInInteriorprepPoly| Constructor and Description |
|---|
PreparedPolygonContains(PreparedPolygon prepPoly)
Creates an instance of this operation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Geometry geom)
Tests whether this PreparedPolygon contains a given geometry.
|
static boolean |
contains(PreparedPolygon prep,
Geometry geom)
Computes the contains predicate between a
PreparedPolygon
and a Geometry. |
protected boolean |
fullTopologicalPredicate(Geometry geom)
Computes the full topological contains predicate.
|
evalisAllTestComponentsInTarget, isAllTestComponentsInTargetInterior, isAnyTargetComponentInAreaTest, isAnyTestComponentInTarget, isAnyTestComponentInTargetInteriorpublic PreparedPolygonContains(PreparedPolygon prepPoly)
prepPoly - the PreparedPolygon to evaluatepublic static boolean contains(PreparedPolygon prep, Geometry geom)
PreparedPolygon
and a Geometry.prep - the prepared polygongeom - a test geometrypublic boolean contains(Geometry geom)
geom - the test geometryprotected boolean fullTopologicalPredicate(Geometry geom)
fullTopologicalPredicate in class AbstractPreparedPolygonContainsgeom - the test geometry