Package org.locationtech.jts.wms
Class BoundingBox
- java.lang.Object
-
- org.locationtech.jts.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.- Author:
- chodgson@refractions.net
-
-
Constructor Summary
Constructors Constructor Description BoundingBox(String srs, float minx, float miny, float maxx, float maxy)
Creates a new BoundingBox with the given SRS, minima and maxima.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getMaxX()
Gets the BoundingBox's maximum x value.float
getMaxY()
Gets the BoundingBox's maximum y value.float
getMinX()
Gets the BoundingBox's minimum x value.float
getMinY()
Gets the BoundingBox's minimum y value.String
getSRS()
Gets the SRS string.
-
-
-
Constructor Detail
-
BoundingBox
public BoundingBox(String srs, float minx, float miny, float maxx, float maxy)
Creates a new BoundingBox with the given SRS, minima and maxima.- Parameters:
srs
- a WMS-style SRS string such as "EPSG:1234", or the special string "LatLon" for a latitude/longitude boxminx
- the minimum x-value of the bounding boxminy
- the minimum y-value of the bounding boxmaxx
- the maximum x-value of the bounding boxmaxy
- the maximum y-value of the bounding box
-
-
Method Detail
-
getSRS
public String getSRS()
Gets the SRS string.- Returns:
- the BoundingBox's SRS WMS-style string
-
getMinX
public float getMinX()
Gets the BoundingBox's minimum x value.- Returns:
- the BoundingBox's minimum x value
-
getMinY
public float getMinY()
Gets the BoundingBox's minimum y value.- Returns:
- the BoundingBox's minimum y value
-
getMaxX
public float getMaxX()
Gets the BoundingBox's maximum x value.- Returns:
- the BoundingBox's maximum x value
-
getMaxY
public float getMaxY()
Gets the BoundingBox's maximum y value.- Returns:
- the BoundingBox's maximum y value
-
-