Class TLcdOWSBoundingBox
- All Implemented Interfaces:
ILcdDataObject
,ILcdBounded
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
- Direct Known Subclasses:
TLcdOWSWGS84BoundingBox
This type is adapted from the EnvelopeType of GML 3.1, with modified contents and documentation for encoding a MINIMUM size box SURROUNDING all associated data.
-
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 TLcdOWSBoundingBox.TLcdOWSBoundingBox
(TLcdDataType aType) Constructs a new undefined TLcdOWSBoundingBox, with a custom data type To define these bounds, set thecrs
,lower corner
andupper corner
valuesTLcdOWSBoundingBox
(String aCrs, TLcdOWSPosition aLowerCorner, TLcdOWSPosition aUpperCorner) Convenience constructor that sets the crs, lower corner and upper corner when constructing a TLcdOWSBoundingBox. -
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.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 value of the property that maps to thecrs
attribute.void
setDimensions
(Integer aValue) Sets the value of the property that maps to thedimensions
attribute.void
setLowerCorner
(TLcdOWSPosition aValue) Sets the value of the property that maps to theLowerCorner
element.void
setUpperCorner
(TLcdOWSPosition aValue) Sets the value of the property that maps to theUpperCorner
element.void
setValue
(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.void
Convenience method that sets the value of the property with the given name.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
-
TLcdOWSBoundingBox
public TLcdOWSBoundingBox()Constructs a new undefined TLcdOWSBoundingBox. To define these bounds, set thecrs
,lower corner
andupper corner
values -
TLcdOWSBoundingBox
Constructs a new undefined TLcdOWSBoundingBox, with a custom data type To define these bounds, set thecrs
,lower corner
andupper corner
values- Parameters:
aType
- The datatype to use
-
TLcdOWSBoundingBox
Convenience constructor that sets the crs, lower corner and upper corner when constructing a TLcdOWSBoundingBox.- Parameters:
aCrs
- The crs to setaLowerCorner
- The lower corner to setaUpperCorner
- The upper corner to set
-
-
Method Details
-
setValue
Description copied from interface:ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException
.- Specified by:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in classTLcdDataObject
- Parameters:
aProperty
- the property for which the value is to be setaValue
- the value to set- See Also:
-
setCrs
Sets 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.
- Parameters:
aValue
- the value to set for theCRS_PROPERTY
property.
-
setDimensions
Sets 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.
- Parameters:
aValue
- the value to set for theDIMENSIONS_PROPERTY
property.
-
setValue
Description copied from interface:ILcdDataObject
Convenience method that sets the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.setValue(TLcdDataProperty, Object)
for more information.- Specified by:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in classTLcdDataObject
- Parameters:
aPropertyName
- the name of the property of which the value is to be setaValue
- the value to set
-
setLowerCorner
Sets 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.
- Parameters:
aValue
- the value to set for theLOWER_CORNER_PROPERTY
property.
-
setUpperCorner
Sets 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.
- Parameters:
aValue
- the value to set for theUPPER_CORNER_PROPERTY
property.
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
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.
-