org.n52.oxf.valueDomains.spatial
Class BoundingBox2D

java.lang.Object
  extended by org.n52.oxf.valueDomains.spatial.BoundingBox
      extended by org.n52.oxf.valueDomains.spatial.BoundingBox2D
All Implemented Interfaces:
IBoundingBox, IRangeValueDomain<IBoundingBox>, IValueDomain<IBoundingBox>

public class BoundingBox2D
extends BoundingBox

This represents a 2-dimensional BoundingBox.

Author:
Arne Broering

Field Summary
 
Fields inherited from class org.n52.oxf.valueDomains.spatial.BoundingBox
crs, dimensions, ERROR_INPUT_COORDINATES, ERROR_NUM_OF_COORINDATE_DIFFER, lowerCorner, upperCorner
 
Constructor Summary
BoundingBox2D(double llx, double lly, double urx, double ury)
          this constructor has all required attributes as its parameters.
BoundingBox2D(String crs, double llx, double lly, double urx, double ury)
          this constructor has all attributes as its parameters.
 
Method Summary
 Rectangle2D.Double asRectangle2D()
           
 double getLlx()
           
 double getLly()
           
 double getUrx()
           
 double getUry()
           
 
Methods inherited from class org.n52.oxf.valueDomains.spatial.BoundingBox
containsValue, equals, getCRS, getDepth, getDimensions, getDomainDescription, getHeight, getLowerCorner, getMaxValue, getMinValue, getUpperCorner, getWidth, produceValue, setCRS, setDimensions, setLowerCorner, setUpperCorner, toKVPString, toString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundingBox2D

public BoundingBox2D(double llx,
                     double lly,
                     double urx,
                     double ury)
this constructor has all required attributes as its parameters.

Throws:
IllegalArgumentException - if the dimensions of lowerLeft and upperRight are not the same.

BoundingBox2D

public BoundingBox2D(String crs,
                     double llx,
                     double lly,
                     double urx,
                     double ury)
this constructor has all attributes as its parameters.

Parameters:
crs - a EPSG String for instance
lowerLeft - the lowerCorner
upperRight - the upperCorner
Throws:
IllegalArgumentException - if the dimensions of lowerLeft and upperRight are not the same.
Method Detail

asRectangle2D

public Rectangle2D.Double asRectangle2D()

getLlx

public double getLlx()

getLly

public double getLly()

getUrx

public double getUrx()

getUry

public double getUry()


Copyright © 2012-2013 52north.org. All Rights Reserved.