Package org.apache.lucene.spatial3d.geom
Class GeoBBoxFactory
java.lang.Object
org.apache.lucene.spatial3d.geom.GeoBBoxFactory
Factory for
GeoBBox
.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoBBox
makeGeoBBox
(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon) Create a geobbox of the right kind given the specified bounds.static GeoBBox
makeGeoBBox
(PlanetModel planetModel, LatLonBounds bounds) Create a geobbox of the right kind given the specifiedLatLonBounds
.
-
Method Details
-
makeGeoBBox
public static GeoBBox makeGeoBBox(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon) Create a geobbox of the right kind given the specified bounds.- Parameters:
planetModel
- is the planet modeltopLat
- is the top latitudebottomLat
- is the bottom latitudeleftLon
- is the left longituderightLon
- is the right longitude- Returns:
- a GeoBBox corresponding to what was specified.
-
makeGeoBBox
Create a geobbox of the right kind given the specifiedLatLonBounds
.- Parameters:
planetModel
- is the planet modelbounds
- are the bounds- Returns:
- a GeoBBox corresponding to what was specified.
-