|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.geom.prep.PreparedPolygonPredicate
com.vividsolutions.jts.geom.prep.AbstractPreparedPolygonContains
A base class containing the logic for computes the contains
and covers spatial relationship predicates
for a PreparedPolygon
relative to all other Geometry
classes.
Uses short-circuit tests and indexing to improve performance.
Contains and covers are very similar, and differ only in how certain cases along the boundary are handled. These cases require full topological evaluation to handle, so all the code in this class is common to both predicates.
It is not possible to short-circuit in all cases, in particular in the case where line segments of the test geometry touches the polygon linework. In this case full topology must be computed. (However, if the test geometry consists of only points, this can be evaluated in an optimized fashion.
Field Summary | |
protected boolean |
requireSomePointInInterior
This flag controls a difference between contains and covers. |
Fields inherited from class com.vividsolutions.jts.geom.prep.PreparedPolygonPredicate |
prepPoly |
Constructor Summary | |
AbstractPreparedPolygonContains(PreparedPolygon prepPoly)
Creates an instance of this operation. |
Method Summary | |
protected boolean |
eval(Geometry geom)
Evaluate the contains or covers relationship for the given geometry. |
protected abstract boolean |
fullTopologicalPredicate(Geometry geom)
Computes the full topological predicate. |
Methods inherited from class com.vividsolutions.jts.geom.prep.PreparedPolygonPredicate |
isAllTestComponentsInTarget, isAllTestComponentsInTargetInterior, isAnyTargetComponentInAreaTest, isAnyTestComponentInTarget, isAnyTestComponentInTargetInterior |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean requireSomePointInInterior
Constructor Detail |
public AbstractPreparedPolygonContains(PreparedPolygon prepPoly)
prepPoly
- the PreparedPolygon to evaluateMethod Detail |
protected boolean eval(Geometry geom)
geom
- the test geometry
protected abstract boolean fullTopologicalPredicate(Geometry geom)
geom
- the test geometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |