com.vividsolutions.jts.geom.prep
public class PreparedPolygonContainsProperly extends PreparedPolygonPredicate
PreparedPolygons relative to all other Geometry classes.
Uses short-circuit tests and indexing to improve performance.
A Geometry A containsProperly another Geometry B iff all points of B are contained in the Interior of A. Equivalently, B is contained in A AND B does not intersect the Boundary of A.
The advantage to using this predicate is that it can be computed efficiently, with no need to compute topology at individual points. In a situation with many geometries intersecting the boundary of the target geometry, this can make a performance difference.
prepPoly| Constructor and Description |
|---|
PreparedPolygonContainsProperly(PreparedPolygon prepPoly)
Creates an instance of this operation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperly(Geometry geom)
Tests whether this PreparedPolygon containsProperly a given geometry.
|
static boolean |
containsProperly(PreparedPolygon prep,
Geometry geom)
Computes the containsProperly predicate between a
PreparedPolygon
and a Geometry. |
isAllTestComponentsInTarget, isAllTestComponentsInTargetInterior, isAnyTargetComponentInAreaTest, isAnyTestComponentInTarget, isAnyTestComponentInTargetInteriorpublic PreparedPolygonContainsProperly(PreparedPolygon prepPoly)
prepPoly - the PreparedPolygon to evaluatepublic static boolean containsProperly(PreparedPolygon prep, Geometry geom)
PreparedPolygon
and a Geometry.prep - the prepared polygongeom - a test geometrypublic boolean containsProperly(Geometry geom)
geom - the test geometry