com.vividsolutions.wms
Class BoundingBox

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

public class BoundingBox
extends java.lang.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
BoundingBox(java.lang.String srs, double minx, double miny, double maxx, double maxy)
          Creates a new BoundingBox with the given SRS, minima and maxima.
 
Method Summary
 double getMaxX()
          Gets the BoundingBox's maximum x value.
 double getMaxY()
          Gets the BoundingBox's maximum y value.
 double getMinX()
          Gets the BoundingBox's minimum x value.
 double getMinY()
          Gets the BoundingBox's minimum y value.
 java.lang.String getSRS()
          Gets the SRS string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundingBox

public BoundingBox(java.lang.String srs,
                   double minx,
                   double miny,
                   double maxx,
                   double 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 box
minx - the minimum x-value of the bounding box
miny - the minimum y-value of the bounding box
maxx - the maximum x-value of the bounding box
maxy - the maximum y-value of the bounding box
Method Detail

getSRS

public java.lang.String getSRS()
Gets the SRS string.

Returns:
the BoundingBox's SRS WMS-style string

getMinX

public double getMinX()
Gets the BoundingBox's minimum x value.

Returns:
the BoundingBox's minimum x value

getMinY

public double getMinY()
Gets the BoundingBox's minimum y value.

Returns:
the BoundingBox's minimum y value

getMaxX

public double getMaxX()
Gets the BoundingBox's maximum x value.

Returns:
the BoundingBox's maximum x value

getMaxY

public double getMaxY()
Gets the BoundingBox's maximum y value.

Returns:
the BoundingBox's maximum y value