java.lang.Object
org.opengis.cite.ogcapifeatures10.util.BBox

public class BBox extends Object

BBox class.

Author:
Lyn Goltz
  • Constructor Details

    • BBox

      public BBox(double minX, double minY, double maxX, double maxY)

      Constructor for BBox.

      Parameters:
      minX - Lower left corner, coordinate axis 1
      minY - Lower left corner, coordinate axis 2
      maxX - Upper right corner, coordinate axis 1
      maxY - Upper right corner, coordinate axis 2
    • BBox

      public BBox(double minX, double minY, double maxX, double maxY, CoordinateSystem crs)

      Constructor for BBox.

      Parameters:
      minX - Lower left corner, coordinate axis 1
      minY - Lower left corner, coordinate axis 2
      maxX - Upper right corner, coordinate axis 1
      maxY - Upper right corner, coordinate axis 2
      crs - CRS of the bbox, may be null
  • Method Details

    • getMinX

      public double getMinX()

      Getter for the field minX.

      Returns:
      Lower left corner, coordinate axis 1
    • getMinY

      public double getMinY()

      Getter for the field minY.

      Returns:
      Lower left corner, coordinate axis 2
    • getMaxX

      public double getMaxX()

      Getter for the field maxX.

      Returns:
      Upper right corner, coordinate axis 1
    • getMaxY

      public double getMaxY()

      Getter for the field maxY.

      Returns:
      Upper right corner, coordinate axis 2
    • getCrs

      public CoordinateSystem getCrs()

      Getter for the field crs.

      Returns:
      CRS of the bbox, never null
    • asQueryParameter

      public String asQueryParameter()

      asQueryParameter.

      Returns:
      the bbox as query string like '-12,10, 12,20'
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object