Class GeometryContainsPointVisitor
- java.lang.Object
-
- org.locationtech.jts.geom.util.ShortCircuitedGeometryVisitor
-
- org.locationtech.jts.operation.predicate.GeometryContainsPointVisitor
-
class GeometryContainsPointVisitor extends ShortCircuitedGeometryVisitor
A visitor which tests whether it can be concluded that a geometry contains a vertex of a query geometry.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
containsPoint
private Envelope
rectEnv
private CoordinateSequence
rectSeq
-
Constructor Summary
Constructors Constructor Description GeometryContainsPointVisitor(Polygon rectangle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPoint()
Reports whether it can be concluded that a corner point of the rectangle is contained in the geometry, or whether further testing is required.protected boolean
isDone()
protected void
visit(Geometry geom)
-
Methods inherited from class org.locationtech.jts.geom.util.ShortCircuitedGeometryVisitor
applyTo
-
-
-
-
Field Detail
-
rectSeq
private CoordinateSequence rectSeq
-
rectEnv
private Envelope rectEnv
-
containsPoint
private boolean containsPoint
-
-
Constructor Detail
-
GeometryContainsPointVisitor
public GeometryContainsPointVisitor(Polygon rectangle)
-
-
Method Detail
-
containsPoint
public boolean containsPoint()
Reports whether it can be concluded that a corner point of the rectangle is contained in the geometry, or whether further testing is required.- Returns:
- true if a corner point is contained or false if no conclusion about intersection can be made
-
visit
protected void visit(Geometry geom)
- Specified by:
visit
in classShortCircuitedGeometryVisitor
-
isDone
protected boolean isDone()
- Specified by:
isDone
in classShortCircuitedGeometryVisitor
-
-