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()
      • build

        public org.locationtech.spatial4j.shape.Rectangle build()
        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:
        build in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,​EnvelopeBuilder>
        Returns:
        new Shape defined by the builder