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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thecrsattribute.static final TLcdDataPropertyData property that maps to thedimensionsattribute.static final TLcdDataPropertyData property that maps to theLowerCornerelement.static final TLcdDataPropertyData property that maps to theUpperCornerelement. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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 anILcdBoundsinstance with WGS 84 lon/lat coordinates.getCrs()Returns the value of the property that maps to thecrsattribute.Returns the value of the property that maps to thedimensionsattribute.Returns the value of the property that maps to theLowerCornerelement.Returns the value of the property that maps to theUpperCornerelement.voidSets the Coordinate Reference System.voidsetDimensions(Integer aDimensions) Sets the dimensions.voidsetLowerCorner(TLcdOWSPosition aLowerCorner) Sets the lower corner.voidsetUpperCorner(TLcdOWSPosition aUpperCorner) Sets the upper corner.Methods inherited from class com.luciad.ogc.ows.model.TLcdOWSBoundingBox
getBounds, setValue, setValueMethods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, toString
-
Field Details
-
CRS_PROPERTY
Data property that maps to thecrsattribute. The possible values for this property are instances ofString. -
DIMENSIONS_PROPERTY
Data property that maps to thedimensionsattribute. The possible values for this property are instances ofInteger. -
LOWER_CORNER_PROPERTY
Data property that maps to theLowerCornerelement. The possible values for this property are instances ofTLcdOWSPosition. -
UPPER_CORNER_PROPERTY
Data property that maps to theUpperCornerelement. 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 cornerandupper cornervalues. -
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:
setCrsin classTLcdOWSBoundingBox- Parameters:
aCrs- the Coordinate Reference System to be set.
-
setDimensions
Sets the dimensions. It must be 2.- Overrides:
setDimensionsin classTLcdOWSBoundingBox- Parameters:
aDimensions- the dimensions to be set.
-
setLowerCorner
Sets the lower corner. It must be an instance ofTLcdOWSPositionType2D.- Overrides:
setLowerCornerin classTLcdOWSBoundingBox- Parameters:
aLowerCorner- the lower corner to be set.
-
setUpperCorner
Sets the upper corner. It must be an instance ofTLcdOWSPositionType2D.- Overrides:
setUpperCornerin classTLcdOWSBoundingBox- Parameters:
aUpperCorner- the upper corner to be set.
-
asBounds
Returns the bounds represented by this class as anILcdBoundsinstance with WGS 84 lon/lat coordinates. If the bounds are not defined,nullis returned.- Returns:
- the bounds represented by this class as an
ILcdBoundsinstance ornullif the bounds are not defined. - Since:
- 2017.1
-
getCrs
Returns the value of the property that maps to thecrsattribute.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_PROPERTYproperty.
-
getDimensions
Returns the value of the property that maps to thedimensionsattribute.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_PROPERTYproperty.
-
getLowerCorner
Returns the value of the property that maps to theLowerCornerelement.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_PROPERTYproperty.
-
getUpperCorner
Returns the value of the property that maps to theUpperCornerelement.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_PROPERTYproperty.
-