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 TypeMethodDescriptiondoubledoubledoubledoublebooleanvoidsetGlobalCoverage(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) Set whether this binding box represents global coverage or not.voidsetMaxLatitude(double maxLatitude) voidsetMaxLongitude(double maxLongitude) voidsetMinLatitude(double minLatitude) voidsetMinLongitude(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:
toWellKnownTextin 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
-