java.lang.Object
org.opengeospatial.cite.wmts10.ets.core.domain.BoundingBox

public class BoundingBox extends Object
Represents a bounding box of a layer from a capabilities document.
Author:
Lyn Goltz
  • Constructor Details

    • BoundingBox

      public BoundingBox(String crs, double minX, double minY, double maxX, double maxY)
      Parameters:
      crs - of the bounding box, never null
      minX - the min x value, must be a value less than maxX
      minY - the min y value, must be a value less than maxY
      maxX - the max x value, must be a value greater than minX
      maxY - the max y value, must be a value greater than minY
      Throws:
      IllegalArgumentException - if crs is null or minX greater/equal maxX or minY greater/equal maxY
  • Method Details

    • getCrs

      public String getCrs()
      Returns:
      the of the bounding box, never null
    • getMinX

      public double getMinX()
      Returns:
      the min x value
    • getMinY

      public double getMinY()
      Returns:
      the min y value
    • getMaxX

      public double getMaxX()
      Returns:
      the max x value
    • getMaxY

      public double getMaxY()
      Returns:
      the max y value
    • getBboxAsString

      public String getBboxAsString()
      Returns:
      bounding box as a string
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object