Package org.apache.lucene.spatial3d.geom
Class GeoAreaFactory
java.lang.Object
org.apache.lucene.spatial3d.geom.GeoAreaFactory
Factory for
GeoArea
.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoArea
makeGeoArea
(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon) Create a GeoArea of the right kind given the specified bounds.static GeoArea
makeGeoArea
(PlanetModel planetModel, double minX, double maxX, double minY, double maxY, double minZ, double maxZ) Create a GeoArea of the right kind given (x,y,z) bounds.
-
Method Details
-
makeGeoArea
public static GeoArea makeGeoArea(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon) Create a GeoArea 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 GeoArea corresponding to what was specified.
-
makeGeoArea
public static GeoArea makeGeoArea(PlanetModel planetModel, double minX, double maxX, double minY, double maxY, double minZ, double maxZ) Create a GeoArea of the right kind given (x,y,z) bounds.- Parameters:
planetModel
- is the planet modelminX
- is the min X boundarymaxX
- is the max X boundaryminY
- is the min Y boundarymaxY
- is the max Y boundaryminZ
- is the min Z boundarymaxZ
- is the max Z boundary
-