public class TLcdOWSWGS84BoundingBox extends TLcdOWSBoundingBox
This class represents a rectangular bounding box (or region) parameter, surrounding all the associated data. This box is specialized for use with the 2D WGS 84 coordinate reference system with decimal values of longitude and latitude.
The corresponding XML type is adapted from the general BoundingBoxType, with modified contents and documentation for use with the 2D WGS 84 coordinate reference system.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
CRS_PROPERTY
Data property that maps to the
crs attribute. |
static TLcdDataProperty |
DIMENSIONS_PROPERTY
Data property that maps to the
dimensions attribute. |
static TLcdDataProperty |
LOWER_CORNER_PROPERTY
Data property that maps to the
LowerCorner element. |
static TLcdDataProperty |
UPPER_CORNER_PROPERTY
Data property that maps to the
UpperCorner element. |
Constructor and Description |
---|
TLcdOWSWGS84BoundingBox()
Constructs a new undefined TLcdOWSWGS84BoundingBox.
|
TLcdOWSWGS84BoundingBox(TLcdOWSPosition aLowerCorner,
TLcdOWSPosition aUpperCorner)
Convenience constructor that sets lower corner and upper corner when constructing a
TLcdOWSBoundingBox.
|
Modifier and Type | Method and Description |
---|---|
ILcdBounds |
asBounds()
Returns the bounds represented by this class as an
ILcdBounds instance
with WGS 84 lon/lat coordinates. |
String |
getCrs()
Returns the value of the property that maps to the
crs attribute. |
Integer |
getDimensions()
Returns the value of the property that maps to the
dimensions attribute. |
TLcdOWSPosition |
getLowerCorner()
Returns the value of the property that maps to the
LowerCorner element. |
TLcdOWSPosition |
getUpperCorner()
Returns the value of the property that maps to the
UpperCorner element. |
void |
setCrs(String aCrs)
Sets the Coordinate Reference System.
|
void |
setDimensions(Integer aDimensions)
Sets the dimensions.
|
void |
setLowerCorner(TLcdOWSPosition aLowerCorner)
Sets the lower corner.
|
void |
setUpperCorner(TLcdOWSPosition aUpperCorner)
Sets the upper corner.
|
getBounds, setValue, setValue
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, toString
public static final TLcdDataProperty CRS_PROPERTY
crs
attribute.
The possible values for this property are instances of String
.public static final TLcdDataProperty DIMENSIONS_PROPERTY
dimensions
attribute.
The possible values for this property are instances of Integer
.public static final TLcdDataProperty LOWER_CORNER_PROPERTY
LowerCorner
element.
The possible values for this property are instances of TLcdOWSPosition
.public static final TLcdDataProperty UPPER_CORNER_PROPERTY
UpperCorner
element.
The possible values for this property are instances of TLcdOWSPosition
.public TLcdOWSWGS84BoundingBox()
lower corner
and upper corner
values.public TLcdOWSWGS84BoundingBox(TLcdOWSPosition aLowerCorner, TLcdOWSPosition aUpperCorner)
aLowerCorner
- The lower corner to setaUpperCorner
- The upper corner to setpublic void setCrs(String aCrs)
setCrs
in class TLcdOWSBoundingBox
aCrs
- the Coordinate Reference System to be set.public void setDimensions(Integer aDimensions)
setDimensions
in class TLcdOWSBoundingBox
aDimensions
- the dimensions to be set.public void setLowerCorner(TLcdOWSPosition aLowerCorner)
TLcdOWSPositionType2D
.setLowerCorner
in class TLcdOWSBoundingBox
aLowerCorner
- the lower corner to be set.public void setUpperCorner(TLcdOWSPosition aUpperCorner)
TLcdOWSPositionType2D
.setUpperCorner
in class TLcdOWSBoundingBox
aUpperCorner
- the upper corner to be set.public ILcdBounds asBounds()
ILcdBounds
instance
with WGS 84 lon/lat coordinates. If the bounds are not defined,
null
is returned.ILcdBounds
instance
or null
if the bounds are not defined.public String getCrs()
crs
attribute.
Usually references the definition of a CRS, as specified in [OGC Topic 2]. Such a CRS definition can be XML encoded using the gml:CoordinateReferenceSystemType in [GML 3.1]. For well known references, it is not required that a CRS definition exist at the location the URI points to. If no anyURI value is included, the applicable CRS must be either: a) Specified outside the bounding box, but inside a data structure that includes this bounding box, as specified for a specific OWS use of this bounding box type. b) Fixed and specified in the Implementation Specification for a specific OWS use of the bounding box type.
CRS_PROPERTY
property.public Integer getDimensions()
dimensions
attribute.
The number of dimensions in this CRS (the length of a coordinate sequence in this use of the PositionType). This number is specified by the CRS definition, but can also be specified here.
DIMENSIONS_PROPERTY
property.public TLcdOWSPosition getLowerCorner()
LowerCorner
element.
Position of the bounding box corner at which the value of each coordinate normally is the algebraic minimum within this bounding box. In some cases, this position is normally displayed at the top, such as the top left for some image coordinates. For more information, see Subclauses 10.2.5 and C.13.
LOWER_CORNER_PROPERTY
property.public TLcdOWSPosition getUpperCorner()
UpperCorner
element.
Position of the bounding box corner at which the value of each coordinate normally is the algebraic maximum within this bounding box. In some cases, this position is normally displayed at the bottom, such as the bottom right for some image coordinates. For more information, see Subclauses 10.2.5 and C.13.
UPPER_CORNER_PROPERTY
property.