|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.oxf.valueDomains.spatial.BoundingBox
public class BoundingBox
This represents a standard BoundingBox. Does not any operations like zoom etc..
Field Summary | |
---|---|
protected String |
crs
|
protected int |
dimensions
|
static String |
ERROR_INPUT_COORDINATES
|
static String |
ERROR_NUM_OF_COORINDATE_DIFFER
|
protected double[] |
lowerCorner
stores the coordinates of the lowerCorner. |
protected double[] |
upperCorner
stores the coordinates of the upperCorner. |
Constructor Summary | |
---|---|
BoundingBox(double[] lowerLeft,
double[] upperRight)
this constructor has all required attributes as its parameters. |
|
BoundingBox(String crs,
double[] lowerLeft,
double[] upperRight)
this constructor has all attributes as its parameters. |
Method Summary | |
---|---|
boolean |
containsValue(IBoundingBox bBox)
checks if the parameter bBox is contained in (or equal to) this BoundingBox. |
boolean |
equals(BoundingBox bbox)
|
String |
getCRS()
|
double |
getDepth()
difference in z direction, i.e. |
int |
getDimensions()
|
String |
getDomainDescription()
|
double |
getHeight()
difference in y direction, i.e. |
double[] |
getLowerCorner()
|
double[] |
getMaxValue()
|
double[] |
getMinValue()
|
double[] |
getUpperCorner()
|
double |
getWidth()
difference in x direction, i.e. |
BoundingBox |
produceValue(String... stringArray)
|
protected void |
setCRS(String crs)
|
protected void |
setDimensions(int dimensions)
|
protected void |
setLowerCorner(double[] lowerCornerArray)
|
protected void |
setUpperCorner(double[] upperCornerArray)
|
String |
toKVPString()
|
String |
toString()
|
String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ERROR_INPUT_COORDINATES
public static final String ERROR_NUM_OF_COORINDATE_DIFFER
protected double[] lowerCorner
protected double[] upperCorner
protected String crs
protected int dimensions
Constructor Detail |
---|
public BoundingBox(double[] lowerLeft, double[] upperRight)
lowerLeft
- the lowerCornerupperRight
- the upperCorner
NullPointerException
- if one of the arguments are null
IllegalStateException
- if passed argument arrays have different length/dimension.public BoundingBox(String crs, double[] lowerLeft, double[] upperRight)
crs
- a EPSG String for instancelowerLeft
- the lowerCornerupperRight
- the upperCorner
NullPointerException
- if one of the arguments are null
IllegalStateException
- if passed argument arrays have different length/dimension.Method Detail |
---|
public String getCRS()
getCRS
in interface IBoundingBox
protected void setCRS(String crs)
crs
- The cRS to set.public double[] getMaxValue()
getMaxValue
in interface IRangeValueDomain<IBoundingBox>
Object
can be replaced by a specialized type.
(e.g. BoundingBox: public double[] getMaxValue()
)public double[] getMinValue()
getMinValue
in interface IRangeValueDomain<IBoundingBox>
Object
can be replaced by a specialized type.
(e.g. BoundingBox: public double[] getMinValue()
)public double[] getLowerCorner()
getLowerCorner
in interface IBoundingBox
protected void setLowerCorner(double[] lowerCornerArray)
lowerCorner
- The lowerCorner to set.
OXFException
- if the length of the coordinate tupel is not equal to the dimension count. This only
happens, if the dimension number is set!public double[] getUpperCorner()
getUpperCorner
in interface IBoundingBox
protected void setUpperCorner(double[] upperCornerArray)
upperCorner
- The upperCorner to set.
OXFException
- if the length of the coordinate tupel is not equal to the dimension count. This only
happens, if the dimension number is set!public int getDimensions()
getDimensions
in interface IBoundingBox
protected void setDimensions(int dimensions)
dimensions
- The dimensions to set.public boolean containsValue(IBoundingBox bBox)
containsValue
in interface IValueDomain<IBoundingBox>
public String toXML()
toXML
in interface IValueDomain<IBoundingBox>
public String toKVPString()
public String toString()
toString
in class Object
public String getDomainDescription()
getDomainDescription
in interface IValueDomain<IBoundingBox>
public BoundingBox produceValue(String... stringArray)
produceValue
in interface IValueDomain<IBoundingBox>
public boolean equals(BoundingBox bbox)
bbox
-
public double getWidth()
public double getHeight()
public double getDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |