Class TLcdOWSWGS84BoundingBox

All Implemented Interfaces:
ILcdDataObject, ILcdBounded, ILcdCloneable, ILcdDeepCloneable, Cloneable

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.

  • Field Details

    • CRS_PROPERTY

      public static final TLcdDataProperty CRS_PROPERTY
      Data property that maps to the crs attribute. The possible values for this property are instances of String.
    • DIMENSIONS_PROPERTY

      public static final TLcdDataProperty DIMENSIONS_PROPERTY
      Data property that maps to the dimensions attribute. The possible values for this property are instances of Integer.
    • LOWER_CORNER_PROPERTY

      public static final TLcdDataProperty LOWER_CORNER_PROPERTY
      Data property that maps to the LowerCorner element. The possible values for this property are instances of TLcdOWSPosition.
    • UPPER_CORNER_PROPERTY

      public static final TLcdDataProperty UPPER_CORNER_PROPERTY
      Data property that maps to the UpperCorner element. The possible values for this property are instances of TLcdOWSPosition.
  • Constructor Details

    • TLcdOWSWGS84BoundingBox

      public TLcdOWSWGS84BoundingBox()
      Constructs a new undefined TLcdOWSWGS84BoundingBox. To define these bounds, set the lower corner and upper corner values.
    • TLcdOWSWGS84BoundingBox

      public TLcdOWSWGS84BoundingBox(TLcdOWSPosition aLowerCorner, TLcdOWSPosition aUpperCorner)
      Convenience constructor that sets lower corner and upper corner when constructing a TLcdOWSBoundingBox.
      Parameters:
      aLowerCorner - The lower corner to set
      aUpperCorner - The upper corner to set
  • Method Details

    • setCrs

      public void setCrs(String aCrs)
      Sets the Coordinate Reference System. It must be urn:ogc:def:crs:OGC:2:84.
      Overrides:
      setCrs in class TLcdOWSBoundingBox
      Parameters:
      aCrs - the Coordinate Reference System to be set.
    • setDimensions

      public void setDimensions(Integer aDimensions)
      Sets the dimensions. It must be 2.
      Overrides:
      setDimensions in class TLcdOWSBoundingBox
      Parameters:
      aDimensions - the dimensions to be set.
    • setLowerCorner

      public void setLowerCorner(TLcdOWSPosition aLowerCorner)
      Sets the lower corner. It must be an instance of TLcdOWSPositionType2D.
      Overrides:
      setLowerCorner in class TLcdOWSBoundingBox
      Parameters:
      aLowerCorner - the lower corner to be set.
    • setUpperCorner

      public void setUpperCorner(TLcdOWSPosition aUpperCorner)
      Sets the upper corner. It must be an instance of TLcdOWSPositionType2D.
      Overrides:
      setUpperCorner in class TLcdOWSBoundingBox
      Parameters:
      aUpperCorner - the upper corner to be set.
    • asBounds

      public ILcdBounds asBounds()
      Returns the bounds represented by this class as an ILcdBounds 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 or null if the bounds are not defined.
      Since:
      2017.1
    • getCrs

      public String getCrs()
      Returns the value of the property that maps to the 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.

      Returns:
      the value of the CRS_PROPERTY property.
    • getDimensions

      public Integer getDimensions()
      Returns the value of the property that maps to the 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.

      Returns:
      the value of the DIMENSIONS_PROPERTY property.
    • getLowerCorner

      public TLcdOWSPosition getLowerCorner()
      Returns the value of the property that maps to the 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.

      Returns:
      the value of the LOWER_CORNER_PROPERTY property.
    • getUpperCorner

      public TLcdOWSPosition getUpperCorner()
      Returns the value of the property that maps to the 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.

      Returns:
      the value of the UPPER_CORNER_PROPERTY property.