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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundingBox()
BoundingBox(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMaxLatitude()
double
getMaxLongitude()
double
getMinLatitude()
double
getMinLongitude()
boolean
isGlobalCoverage()
void
setGlobalCoverage(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
Set whether this binding box represents global coverage or not.void
setMaxLatitude(double maxLatitude)
void
setMaxLongitude(double maxLongitude)
void
setMinLatitude(double minLatitude)
void
setMinLongitude(double minLongitude)
String
toWellKnownText()
-
-
-
Constructor Detail
-
BoundingBox
public BoundingBox()
-
BoundingBox
public BoundingBox(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
-
-
Method Detail
-
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
public String toWellKnownText()
- Specified by:
toWellKnownText
in interfaceGeometry
- 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 latitudemaxLatitude
- max latitudeminLongitude
- min longitudemaxLongitude
- max longitude
-
-