Class BoundingBox
java.lang.Object
org.gbif.api.model.registry.eml.geospatial.BoundingBox
- All Implemented Interfaces:
Serializable
,Geometry
Geographic coverage geometry in the form of 4 sided bounding box.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox
(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
boolean
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)
-
Constructor Details
-
BoundingBox
public BoundingBox() -
BoundingBox
public BoundingBox(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
-
-
Method Details
-
getMaxLatitude
-
setMaxLatitude
-
getMaxLongitude
-
setMaxLongitude
-
getMinLatitude
-
setMinLatitude
-
getMinLongitude
-
setMinLongitude
-
toWellKnownText
- Specified by:
toWellKnownText
in interfaceGeometry
- Returns:
- the well know text (wkt) representation of the geometry
-
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
-