Class TLcdOWSWGS84BoundingBox
- All Implemented Interfaces:
ILcdDataObject
,ILcdBounded
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to thecrs
attribute.static final TLcdDataProperty
Data property that maps to thedimensions
attribute.static final TLcdDataProperty
Data property that maps to theLowerCorner
element.static final TLcdDataProperty
Data property that maps to theUpperCorner
element. -
Constructor Summary
ConstructorDescriptionConstructs a new undefined TLcdOWSWGS84BoundingBox.TLcdOWSWGS84BoundingBox
(TLcdOWSPosition aLowerCorner, TLcdOWSPosition aUpperCorner) Convenience constructor that sets lower corner and upper corner when constructing a TLcdOWSBoundingBox. -
Method Summary
Modifier and TypeMethodDescriptionasBounds()
Returns the bounds represented by this class as anILcdBounds
instance with WGS 84 lon/lat coordinates.getCrs()
Returns the value of the property that maps to thecrs
attribute.Returns the value of the property that maps to thedimensions
attribute.Returns the value of the property that maps to theLowerCorner
element.Returns the value of the property that maps to theUpperCorner
element.void
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.Methods inherited from class com.luciad.ogc.ows.model.TLcdOWSBoundingBox
getBounds, setValue, setValue
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, toString
-
Field Details
-
CRS_PROPERTY
Data property that maps to thecrs
attribute. The possible values for this property are instances ofString
. -
DIMENSIONS_PROPERTY
Data property that maps to thedimensions
attribute. The possible values for this property are instances ofInteger
. -
LOWER_CORNER_PROPERTY
Data property that maps to theLowerCorner
element. The possible values for this property are instances ofTLcdOWSPosition
. -
UPPER_CORNER_PROPERTY
Data property that maps to theUpperCorner
element. The possible values for this property are instances ofTLcdOWSPosition
.
-
-
Constructor Details
-
TLcdOWSWGS84BoundingBox
public TLcdOWSWGS84BoundingBox()Constructs a new undefined TLcdOWSWGS84BoundingBox. To define these bounds, set thelower corner
andupper corner
values. -
TLcdOWSWGS84BoundingBox
Convenience constructor that sets lower corner and upper corner when constructing a TLcdOWSBoundingBox.- Parameters:
aLowerCorner
- The lower corner to setaUpperCorner
- The upper corner to set
-
-
Method Details
-
setCrs
Sets the Coordinate Reference System. It must be urn:ogc:def:crs:OGC:2:84.- Overrides:
setCrs
in classTLcdOWSBoundingBox
- Parameters:
aCrs
- the Coordinate Reference System to be set.
-
setDimensions
Sets the dimensions. It must be 2.- Overrides:
setDimensions
in classTLcdOWSBoundingBox
- Parameters:
aDimensions
- the dimensions to be set.
-
setLowerCorner
Sets the lower corner. It must be an instance ofTLcdOWSPositionType2D
.- Overrides:
setLowerCorner
in classTLcdOWSBoundingBox
- Parameters:
aLowerCorner
- the lower corner to be set.
-
setUpperCorner
Sets the upper corner. It must be an instance ofTLcdOWSPositionType2D
.- Overrides:
setUpperCorner
in classTLcdOWSBoundingBox
- Parameters:
aUpperCorner
- the upper corner to be set.
-
asBounds
Returns the bounds represented by this class as anILcdBounds
instance with WGS 84 lon/lat coordinates. If the bounds are not defined,null
is returned.- Returns:
- the bounds represented by this class as an
ILcdBounds
instance ornull
if the bounds are not defined. - Since:
- 2017.1
-
getCrs
Returns the value of the property that maps to thecrs
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.
- Returns:
- the value of the
CRS_PROPERTY
property.
-
getDimensions
Returns the value of the property that maps to thedimensions
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.
- Returns:
- the value of the
DIMENSIONS_PROPERTY
property.
-
getLowerCorner
Returns the value of the property that maps to theLowerCorner
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.
- Returns:
- the value of the
LOWER_CORNER_PROPERTY
property.
-
getUpperCorner
Returns the value of the property that maps to theUpperCorner
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.
- Returns:
- the value of the
UPPER_CORNER_PROPERTY
property.
-