Class BoundingBox
java.lang.Object
com.vividsolutions.wms.BoundingBox
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 Summary
ConstructorsConstructorDescriptionBoundingBox(String srs, double westBound, double southBound, double eastBound, double northBound) BoundingBox(String srs, org.locationtech.jts.geom.Envelope envelope) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the BoundingBox's maximum easting value.org.locationtech.jts.geom.EnvelopedoubleGets the BoundingBox's maximum northing value.doubleGets the BoundingBox's minimum southing value.getSRS()Gets the SRS string.doubleGets the BoundingBox's minimum westing value.toString()
-
Constructor Details
-
BoundingBox
-
BoundingBox
public BoundingBox(String srs, double westBound, double southBound, double eastBound, double northBound)
-
-
Method Details
-
getSRS
-
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
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope() -
toString
-