Interface SpatialEnvelopeVisitor.PointVisitor

All Known Implementing Classes:
SpatialEnvelopeVisitor.CartesianPointVisitor, SpatialEnvelopeVisitor.GeoPointVisitor
Enclosing class:
SpatialEnvelopeVisitor

public static interface SpatialEnvelopeVisitor.PointVisitor
Visitor for visiting points and rectangles. This is where the actual envelope calculation happens. There are two implementations, one for cartesian coordinates and one for geographic coordinates. The latter can optionally wrap the longitude around the dateline.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    void
    To allow for memory optimizations through object reuse, the visitor can be reset to its initial state.
    void
    visitPoint(double x, double y)
     
    void
    visitRectangle(double minX, double maxX, double maxY, double minY)
     
  • Method Details

    • visitPoint

      void visitPoint(double x, double y)
    • visitRectangle

      void visitRectangle(double minX, double maxX, double maxY, double minY)
    • isValid

      boolean isValid()
    • getResult

      Rectangle getResult()
    • reset

      void reset()
      To allow for memory optimizations through object reuse, the visitor can be reset to its initial state.