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 boolean
intersects
private Envelope
rectEnv
-
Constructor Summary
Constructors Constructor Description EnvelopeIntersectsVisitor(Envelope rectEnv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
intersects()
Reports whether it can be concluded that an intersection occurs, or whether further testing is required.protected boolean
isDone()
protected void
visit(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:
visit
in classShortCircuitedGeometryVisitor
-
isDone
protected boolean isDone()
- Specified by:
isDone
in classShortCircuitedGeometryVisitor
-
-