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
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 TLcdOWSBoundingBox.TLcdOWSBoundingBox(TLcdDataType aType) Constructs a new undefined TLcdOWSBoundingBox, with a custom data type To define these bounds, set thecrs,lower cornerandupper cornervaluesTLcdOWSBoundingBox(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 theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.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 value of the property that maps to thecrsattribute.voidsetDimensions(Integer aValue) Sets the value of the property that maps to thedimensionsattribute.voidsetLowerCorner(TLcdOWSPosition aValue) Sets the value of the property that maps to theLowerCornerelement.voidsetUpperCorner(TLcdOWSPosition aValue) Sets the value of the property that maps to theUpperCornerelement.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidConvenience 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 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
-
TLcdOWSBoundingBox
public TLcdOWSBoundingBox()Constructs a new undefined TLcdOWSBoundingBox. To define these bounds, set thecrs,lower cornerandupper cornervalues -
TLcdOWSBoundingBox
Constructs a new undefined TLcdOWSBoundingBox, with a custom data type To define these bounds, set thecrs,lower cornerandupper cornervalues- 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:ILcdDataObjectSets 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 typeor 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:
setValuein interfaceILcdDataObject- Overrides:
setValuein 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 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.
- Parameters:
aValue- the value to set for theCRS_PROPERTYproperty.
-
setDimensions
Sets 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.
- Parameters:
aValue- the value to set for theDIMENSIONS_PROPERTYproperty.
-
setValue
Description copied from interface:ILcdDataObjectConvenience 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:
setValuein interfaceILcdDataObject- Overrides:
setValuein 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 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.
- Parameters:
aValue- the value to set for theLOWER_CORNER_PROPERTYproperty.
-
setUpperCorner
Sets 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.
- Parameters:
aValue- the value to set for theUPPER_CORNER_PROPERTYproperty.
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
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.
-