Class EnvelopeBuilder

    • Constructor Detail

      • EnvelopeBuilder

        public EnvelopeBuilder​(org.locationtech.jts.geom.Coordinate topLeft,
                               org.locationtech.jts.geom.Coordinate bottomRight)
        Build an envelope from the top left and bottom right coordinates.
      • EnvelopeBuilder

        public EnvelopeBuilder​(StreamInput in)
                        throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • Method Detail

      • topLeft

        public org.locationtech.jts.geom.Coordinate topLeft()
      • bottomRight

        public org.locationtech.jts.geom.Coordinate bottomRight()
      • buildS4J

        public org.locationtech.spatial4j.shape.Rectangle buildS4J()
        Description copied from class: ShapeBuilder
        Create a new Shape from this builder. Since calling this method could change the defined shape. (by inserting new coordinates or change the position of points) the builder looses its validity. So this method should only be called once on a builder
        Specified by:
        buildS4J in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,​EnvelopeBuilder>
        Returns:
        new Shape defined by the builder
      • buildLucene

        public org.apache.lucene.geo.Rectangle buildLucene()
        Description copied from class: ShapeBuilder
        build lucene geometry.
        Specified by:
        buildLucene in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,​EnvelopeBuilder>
        Returns:
        GeoPoint, double[][], Line, Line[], Polygon, Polygon[], Rectangle, Object[]