Class BoundingBox

java.lang.Object
org.gbif.api.model.registry.eml.geospatial.BoundingBox
All Implemented Interfaces:
Serializable, Geometry

public class BoundingBox extends Object implements Serializable, Geometry
Geographic coverage geometry in the form of 4 sided bounding box.
See Also:
  • Constructor Details

    • BoundingBox

      public BoundingBox()
    • BoundingBox

      public BoundingBox(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
  • Method Details

    • getMaxLatitude

      public double getMaxLatitude()
    • setMaxLatitude

      public void setMaxLatitude(double maxLatitude)
    • getMaxLongitude

      public double getMaxLongitude()
    • setMaxLongitude

      public void setMaxLongitude(double maxLongitude)
    • getMinLatitude

      public double getMinLatitude()
    • setMinLatitude

      public void setMinLatitude(double minLatitude)
    • getMinLongitude

      public double getMinLongitude()
    • setMinLongitude

      public void setMinLongitude(double minLongitude)
    • toWellKnownText

      Specified by:
      toWellKnownText in interface Geometry
      Returns:
      the well know text (wkt) representation of the geometry
    • isGlobalCoverage

      public boolean isGlobalCoverage()
      Returns:
      whether the BoundingBox represents global coverage
    • setGlobalCoverage

      public void setGlobalCoverage(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
      Set whether this binding box represents global coverage or not. Setter ensures all 4 required params are provided.
      Parameters:
      minLatitude - min latitude
      maxLatitude - max latitude
      minLongitude - min longitude
      maxLongitude - max longitude