Package org.apache.lucene.spatial3d.geom
Class GeoBBoxFactory
- java.lang.Object
-
- org.apache.lucene.spatial3d.geom.GeoBBoxFactory
-
public class GeoBBoxFactory extends java.lang.Object
Factory forGeoBBox
.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
GeoBBoxFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
isNorthPole(double lat)
private static boolean
isSouthPole(double lat)
private static boolean
latitudesEquals(double lat1, double lat2)
private static boolean
longitudesEquals(double lon1, double lon2)
static 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 Detail
-
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.
-
isNorthPole
private static boolean isNorthPole(double lat)
-
isSouthPole
private static boolean isSouthPole(double lat)
-
latitudesEquals
private static boolean latitudesEquals(double lat1, double lat2)
-
longitudesEquals
private static boolean longitudesEquals(double lon1, double lon2)
-
makeGeoBBox
public static GeoBBox makeGeoBBox(PlanetModel planetModel, LatLonBounds bounds)
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.
-
-