Class EnvelopeIntersectsVisitor
- java.lang.Object
-
- org.locationtech.jts.geom.util.ShortCircuitedGeometryVisitor
-
- org.locationtech.jts.operation.predicate.EnvelopeIntersectsVisitor
-
class EnvelopeIntersectsVisitor extends ShortCircuitedGeometryVisitor
Tests whether it can be concluded that a rectangle intersects a geometry, based on the relationship of the envelope(s) of the geometry.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private booleanintersectsprivate EnveloperectEnv
-
Constructor Summary
Constructors Constructor Description EnvelopeIntersectsVisitor(Envelope rectEnv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanintersects()Reports whether it can be concluded that an intersection occurs, or whether further testing is required.protected booleanisDone()protected voidvisit(Geometry element)-
Methods inherited from class org.locationtech.jts.geom.util.ShortCircuitedGeometryVisitor
applyTo
-
-
-
-
Field Detail
-
rectEnv
private Envelope rectEnv
-
intersects
private boolean intersects
-
-
Constructor Detail
-
EnvelopeIntersectsVisitor
public EnvelopeIntersectsVisitor(Envelope rectEnv)
-
-
Method Detail
-
intersects
public boolean intersects()
Reports whether it can be concluded that an intersection occurs, or whether further testing is required.- Returns:
- true if an intersection must occur or false if no conclusion about intersection can be made
-
visit
protected void visit(Geometry element)
- Specified by:
visitin classShortCircuitedGeometryVisitor
-
isDone
protected boolean isDone()
- Specified by:
isDonein classShortCircuitedGeometryVisitor
-
-