Class BoundingBox

java.lang.Object
com.vividsolutions.wms.BoundingBox

public class BoundingBox extends Object
Represents a bounding box in a specific projection. A BoundingBox is immutable, so you must create a new BoundingBox object, rather than modify the the values of an existing BoundingBox. WARNING : until WMS 3.1, xmin, ymin represent minimum longitude and minimum latitude. From WMS 1.3.0, xmin represents min value for the first axis of the CoordinateSystem and ymin the min value for the second axis. This means that for EPSG:4326, we have WMS 1.1.x : -180, -90, +180, +90 WMS 1.3.0 : -90, -180, +90, +180
Author:
chodgson@refractions.net
  • Constructor Details

    • BoundingBox

      public BoundingBox(String srs, org.locationtech.jts.geom.Envelope envelope)
    • BoundingBox

      public BoundingBox(String srs, double westBound, double southBound, double eastBound, double northBound)
  • Method Details

    • getSRS

      public String getSRS()
      Gets the SRS string.
      Returns:
      the BoundingBox's SRS WMS-style string
    • getAxisOrder

      public AxisOrder getAxisOrder()
    • getWestBound

      public double getWestBound()
      Gets the BoundingBox's minimum westing value.
      Returns:
      the BoundingBox's minimum westing value
    • getSouthBound

      public double getSouthBound()
      Gets the BoundingBox's minimum southing value.
      Returns:
      the BoundingBox's minimum southing value
    • getEastBound

      public double getEastBound()
      Gets the BoundingBox's maximum easting value.
      Returns:
      the BoundingBox's maximum easting value
    • getNorthBound

      public double getNorthBound()
      Gets the BoundingBox's maximum northing value.
      Returns:
      the BoundingBox's maximum northing value
    • getBBox

      public String getBBox(String wmsVersion)
    • getEnvelope

      public org.locationtech.jts.geom.Envelope getEnvelope()
    • toString

      public String toString()
      Overrides:
      toString in class Object