Uses of Class
org.apache.lucene.spatial3d.geom.PlanetModel
-
Packages that use PlanetModel Package Description org.apache.lucene.spatial3d Lucene field & query support for the spatial geometry implemented inorg.apache.lucene.spatial3d.geom
.org.apache.lucene.spatial3d.geom Shapes implemented using 3D planar geometry. -
-
Uses of PlanetModel in org.apache.lucene.spatial3d
Fields in org.apache.lucene.spatial3d declared as PlanetModel Modifier and Type Field Description private PlanetModel
Geo3DDocValuesField. planetModel
protected PlanetModel
Geo3DPoint. planetModel
Planet Model for this Geo3DPointprivate PlanetModel
Geo3DPointDistanceComparator. planetModel
private PlanetModel
Geo3DPointOutsideDistanceComparator. planetModel
private PlanetModel
Geo3DPointOutsideSortField. planetModel
(package private) PlanetModel
Geo3DPointSortField. planetModel
Methods in org.apache.lucene.spatial3d with parameters of type PlanetModel Modifier and Type Method Description private static java.util.List<GeoPolygonFactory.PolygonDescription>
Geo3DUtil. convertToDescription(PlanetModel planetModel, Polygon... polygons)
Convert a list of polygons to a list of polygon descriptions.static double
Geo3DPoint. decodeDimension(byte[] value, int offset, PlanetModel planetModel)
Decode single dimension(package private) static double
Geo3DUtil. decodeValueCeil(int x, PlanetModel planetModel)
Returns largest double that would encode to int x.(package private) static double
Geo3DUtil. decodeValueFloor(int x, PlanetModel planetModel)
Returns smallest double that would encode to int x.static void
Geo3DPoint. encodeDimension(double value, byte[] bytes, int offset, PlanetModel planetModel)
Encode single dimensionprivate void
Geo3DPoint. fillFieldsData(PlanetModel planetModel, double x, double y, double z)
(package private) static GeoBBox
Geo3DUtil. fromBox(PlanetModel planetModel, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
Convert input parameters to a box.(package private) static GeoCircle
Geo3DUtil. fromDistance(PlanetModel planetModel, double latitude, double longitude, double radiusMeters)
Convert input parameters to a circle.(package private) static GeoPolygon
Geo3DUtil. fromLargePolygon(PlanetModel planetModel, Polygon... polygons)
Convert a Polygon object to a large GeoPolygon.(package private) static GeoPath
Geo3DUtil. fromPath(PlanetModel planetModel, double[] pathLatitudes, double[] pathLongitudes, double pathWidthMeters)
Convert input parameters to a path.private static GeoPolygon
Geo3DUtil. fromPolygon(PlanetModel planetModel, Polygon polygon)
Convert a Polygon object into a GeoPolygon.(package private) static GeoPolygon
Geo3DUtil. fromPolygon(PlanetModel planetModel, Polygon... polygons)
Convert a set of Polygon objects into a GeoPolygon.static Query
Geo3DPoint. newBoxQuery(java.lang.String field, PlanetModel planetModel, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
Create a query for matching a box.static Query
Geo3DPoint. newDistanceQuery(java.lang.String field, PlanetModel planetModel, double latitude, double longitude, double radiusMeters)
Create a query for matching points within the specified distance of the supplied location.static SortField
Geo3DDocValuesField. newDistanceSort(java.lang.String field, double latitude, double longitude, double maxRadiusMeters, PlanetModel planetModel)
Creates a SortField for sorting by distance within a circle.static Query
Geo3DPoint. newLargePolygonQuery(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Create a query for matching a large polygon.static SortField
Geo3DDocValuesField. newOutsideBoxSort(java.lang.String field, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude, PlanetModel planetModel)
Creates a SortField for sorting by outside distance from a box.static SortField
Geo3DDocValuesField. newOutsideDistanceSort(java.lang.String field, double latitude, double longitude, double maxRadiusMeters, PlanetModel planetModel)
Creates a SortField for sorting by outside distance from a circle.static SortField
Geo3DDocValuesField. newOutsideLargePolygonSort(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Creates a SortField for sorting by outside distance from a large polygon.static SortField
Geo3DDocValuesField. newOutsidePathSort(java.lang.String field, double[] pathLatitudes, double[] pathLongitudes, double pathWidthMeters, PlanetModel planetModel)
Creates a SortField for sorting by outside distance from a path.static SortField
Geo3DDocValuesField. newOutsidePolygonSort(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Creates a SortField for sorting by outside distance from a polygon.static Query
Geo3DPoint. newPathQuery(java.lang.String field, double[] pathLatitudes, double[] pathLongitudes, double pathWidthMeters, PlanetModel planetModel)
Create a query for matching a path.static SortField
Geo3DDocValuesField. newPathSort(java.lang.String field, double[] pathLatitudes, double[] pathLongitudes, double pathWidthMeters, PlanetModel planetModel)
Creates a SortField for sorting by distance along a path.static Query
Geo3DPoint. newPolygonQuery(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Create a query for matching a polygon.Constructors in org.apache.lucene.spatial3d with parameters of type PlanetModel Constructor Description Geo3DDocValuesField(java.lang.String name, double x, double y, double z, PlanetModel planetModel)
Creates a new Geo3DDocValuesField with the specified x, y, and zGeo3DDocValuesField(java.lang.String name, FieldType type, PlanetModel planetModel)
Geo3DDocValuesField(java.lang.String name, GeoPoint point, PlanetModel planetModel)
Creates a new Geo3DDocValuesField with the specified x, y, and zGeo3DPoint(java.lang.String name, PlanetModel planetModel, double latitude, double longitude)
Creates a new Geo3DPoint field with the specified latitude, longitude (in degrees), given a planet model.Geo3DPoint(java.lang.String name, PlanetModel planetModel, double x, double y, double z)
Creates a new Geo3DPoint field with the specified x,y,z, and given planet model.Geo3DPointDistanceComparator(java.lang.String field, PlanetModel planetModel, GeoDistanceShape distanceShape, int numHits)
Geo3DPointOutsideDistanceComparator(java.lang.String field, PlanetModel planetModel, GeoOutsideDistance distanceShape, int numHits)
Geo3DPointOutsideSortField(java.lang.String field, PlanetModel planetModel, GeoOutsideDistance distanceShape)
Geo3DPointSortField(java.lang.String field, PlanetModel planetModel, GeoDistanceShape distanceShape)
-
Uses of PlanetModel in org.apache.lucene.spatial3d.geom
Fields in org.apache.lucene.spatial3d.geom declared as PlanetModel Modifier and Type Field Description static PlanetModel
PlanetModel. CLARKE_1866
Planet model corresponding to Clarke 1866 ellipsoidprotected PlanetModel
BasePlanetObject. planetModel
This is the planet model embedded in all objects derived from this class.protected PlanetModel
GeoDegeneratePoint. planetModel
Current planet model, since we don't extend BasePlanetObjectprivate PlanetModel
PlanetModel.DocValueEncoder. planetModel
static PlanetModel
PlanetModel. SPHERE
Planet model corresponding to sphere.static PlanetModel
PlanetModel. WGS84
Planet model corresponding to WGS84 ellipsoidMethods in org.apache.lucene.spatial3d.geom that return PlanetModel Modifier and Type Method Description PlanetModel
BasePlanetObject. getPlanetModel()
PlanetModel
GeoDegeneratePoint. getPlanetModel()
PlanetModel
PlanetObject. getPlanetModel()
Returns thePlanetModel
provided when this shape was created.Methods in org.apache.lucene.spatial3d.geom with parameters of type PlanetModel Modifier and Type Method Description Bounds
Bounds. addHorizontalPlane(PlanetModel planetModel, double latitude, Plane horizontalPlane, Membership... bounds)
Add a horizontal plane to the bounds description.Bounds
LatLonBounds. addHorizontalPlane(PlanetModel planetModel, double latitude, Plane horizontalPlane, Membership... bounds)
Bounds
XYZBounds. addHorizontalPlane(PlanetModel planetModel, double latitude, Plane horizontalPlane, Membership... bounds)
Add a horizontal plane to the bounds description.Bounds
Bounds. addIntersection(PlanetModel planetModel, Plane plane1, Plane plane2, Membership... bounds)
Add the intersection between two planes to the bounds description.Bounds
LatLonBounds. addIntersection(PlanetModel planetModel, Plane plane1, Plane plane2, Membership... bounds)
Bounds
XYZBounds. addIntersection(PlanetModel planetModel, Plane plane1, Plane plane2, Membership... bounds)
Bounds
Bounds. addPlane(PlanetModel planetModel, Plane plane, Membership... bounds)
Add a general plane to the bounds description.Bounds
LatLonBounds. addPlane(PlanetModel planetModel, Plane plane, Membership... bounds)
Bounds
XYZBounds. addPlane(PlanetModel planetModel, Plane plane, Membership... bounds)
Bounds
Bounds. addVerticalPlane(PlanetModel planetModel, double longitude, Plane verticalPlane, Membership... bounds)
Add a vertical plane to the bounds description.Bounds
LatLonBounds. addVerticalPlane(PlanetModel planetModel, double longitude, Plane verticalPlane, Membership... bounds)
Bounds
XYZBounds. addVerticalPlane(PlanetModel planetModel, double longitude, Plane verticalPlane, Membership... bounds)
Add a vertical plane to the bounds description.double
Plane. arcDistance(PlanetModel planetModel, double x, double y, double z, Membership... bounds)
Compute arc distance from plane to a vector.double
Plane. arcDistance(PlanetModel planetModel, GeoPoint v, Membership... bounds)
Compute arc distance from plane to a vector expressed with aGeoPoint
.(package private) static boolean
GeoPolygonFactory. buildPolygonShape(GeoCompositePolygon rval, GeoPolygonFactory.MutableBoolean seenConcave, PlanetModel planetModel, java.util.List<GeoPoint> pointsList, java.util.BitSet internalEdges, int startPointIndex, int endPointIndex, SidedPlane startingEdge, java.util.List<GeoPolygon> holes, GeoPoint testPoint)
Build a GeoPolygon out of one concave part and multiple convex parts given points, starting edge, and whether starting edge is internal or not.(package private) static double
Vector. computeDesiredEllipsoidMagnitude(PlanetModel planetModel, double z)
Compute the desired magnitude of a unit vector projected to a given planet model.(package private) static double
Vector. computeDesiredEllipsoidMagnitude(PlanetModel planetModel, double x, double y, double z)
Compute the desired magnitude of a unit vector projected to a given planet model.double
ArcDistance. computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
double
ArcDistance. computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
double
DistanceStyle. computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
Compute the distance from a plane to a point.default double
DistanceStyle. computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
Compute the distance from a plane to a point.double
LinearDistance. computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
double
LinearDistance. computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
double
LinearSquaredDistance. computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
double
LinearSquaredDistance. computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
double
NormalDistance. computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
double
NormalDistance. computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
double
NormalSquaredDistance. computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
double
NormalSquaredDistance. computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
GeoComplexPolygon
GeoPolygonFactory.BestShape. createGeoComplexPolygon(PlanetModel planetModel, java.util.List<java.util.List<GeoPoint>> pointsList, GeoPoint testPoint)
boolean
Plane. crosses(PlanetModel planetModel, Plane q, GeoPoint[] notablePoints, GeoPoint[] moreNotablePoints, Membership[] bounds, Membership... moreBounds)
Determine whether the plane crosses another plane within the bounds provided.GeoPoint[]
Plane. findArcDistancePoints(PlanetModel planetModel, double arcDistanceValue, GeoPoint startPoint, Membership... bounds)
Locate a point that is within the specified bounds and on the specified plane, that has an arcDistance as specified from the startPoint.private static java.lang.Boolean
GeoPolygonFactory. findConvexPolygon(PlanetModel planetModel, GeoPolygonFactory.Edge currentEdge, GeoCompositePolygon rval, GeoPolygonFactory.EdgeBuffer edgeBuffer, java.util.List<GeoPolygon> holes, GeoPoint testPoint)
Look for a convex polygon at the specified edge.GeoPoint[]
Plane. findCrossings(PlanetModel planetModel, Plane q, Membership... bounds)
Find the points between two planes, where one plane crosses the other, given a set of bounds.protected GeoPoint[]
Plane. findCrossings(PlanetModel planetModel, Plane q, Membership[] bounds, Membership[] moreBounds)
Find the points between two planes, where one plane crosses the other, given a set of bounds.GeoPoint[]
ArcDistance. findDistancePoints(PlanetModel planetModel, double distanceValue, GeoPoint startPoint, Plane plane, Membership... bounds)
GeoPoint[]
DistanceStyle. findDistancePoints(PlanetModel planetModel, double distanceValue, GeoPoint startPoint, Plane plane, Membership... bounds)
Find a GeoPoint, at a specified distance from a starting point, within the specified bounds.GeoPoint[]
LinearDistance. findDistancePoints(PlanetModel planetModel, double distanceValue, GeoPoint startPoint, Plane plane, Membership... bounds)
GeoPoint[]
LinearSquaredDistance. findDistancePoints(PlanetModel planetModel, double distanceValue, GeoPoint startPoint, Plane plane, Membership... bounds)
GeoPoint[]
NormalDistance. findDistancePoints(PlanetModel planetModel, double distanceValue, GeoPoint startPoint, Plane plane, Membership... bounds)
GeoPoint[]
NormalSquaredDistance. findDistancePoints(PlanetModel planetModel, double distanceValue, GeoPoint startPoint, Plane plane, Membership... bounds)
protected void
Plane. findIntersectionBounds(PlanetModel planetModel, Bounds boundsInfo, Plane q, Membership... bounds)
Record intersection points for planes with error bounds.GeoPoint[]
Plane. findIntersections(PlanetModel planetModel, Plane q, Membership... bounds)
Find the intersection points between two planes, given a set of bounds.protected GeoPoint[]
Plane. findIntersections(PlanetModel planetModel, Plane q, Membership[] bounds, Membership[] moreBounds)
Find the intersection points between two planes, given a set of bounds.double
ArcDistance. findMaximumArcDistance(PlanetModel planetModel, double distanceValue)
double
DistanceStyle. findMaximumArcDistance(PlanetModel planetModel, double distanceValue)
Given a distance metric, find the maximum arc distance represented by the distance metric.double
LinearDistance. findMaximumArcDistance(PlanetModel planetModel, double distanceValue)
double
LinearSquaredDistance. findMaximumArcDistance(PlanetModel planetModel, double distanceValue)
double
NormalDistance. findMaximumArcDistance(PlanetModel planetModel, double distanceValue)
double
NormalSquaredDistance. findMaximumArcDistance(PlanetModel planetModel, double distanceValue)
double
ArcDistance. findMinimumArcDistance(PlanetModel planetModel, double distanceValue)
double
DistanceStyle. findMinimumArcDistance(PlanetModel planetModel, double distanceValue)
Given a distance metric, find the minimum arc distance represented by that distance metric.double
LinearDistance. findMinimumArcDistance(PlanetModel planetModel, double distanceValue)
double
LinearSquaredDistance. findMinimumArcDistance(PlanetModel planetModel, double distanceValue)
double
NormalDistance. findMinimumArcDistance(PlanetModel planetModel, double distanceValue)
double
NormalSquaredDistance. findMinimumArcDistance(PlanetModel planetModel, double distanceValue)
(package private) static GeoPolygon
GeoPolygonFactory. generateGeoPolygon(PlanetModel planetModel, java.util.List<GeoPoint> filteredPointList, java.util.List<GeoPolygon> holes, GeoPoint testPoint, boolean testPointInside)
Create a GeoPolygon using the specified points and holes and a test point.private static GeoPoint
GeoPolygonFactory. getCenterOfMass(PlanetModel planetModel, java.util.List<GeoPoint> points)
Generate a point at the center of mass of a list of points.GeoPoint
Plane. getSampleIntersectionPoint(PlanetModel planetModel, Plane q)
Find a sample point on the intersection between two planes and the world.GeoPoint[]
Plane. interpolate(PlanetModel planetModel, GeoPoint start, GeoPoint end, double[] proportions)
Find points on the boundary of the intersection of a plane and the unit sphere, given a starting point, and ending point, and a list of proportions of the arc (e.g.boolean
Plane. intersects(PlanetModel planetModel, Plane q, GeoPoint[] notablePoints, GeoPoint[] moreNotablePoints, Membership[] bounds, Membership... moreBounds)
Determine whether the plane intersects another plane within the bounds provided.boolean
XYZBounds. isLargestMaxX(PlanetModel planetModel)
Return true if maxX is as large as the planet model allows.boolean
XYZBounds. isLargestMaxY(PlanetModel planetModel)
Return true if maxY is as large as the planet model allows.boolean
XYZBounds. isLargestMaxZ(PlanetModel planetModel)
Return true if maxZ is as large as the planet model allows.boolean
XYZBounds. isSmallestMinX(PlanetModel planetModel)
Return true if minX is as small as the planet model allows.boolean
XYZBounds. isSmallestMinY(PlanetModel planetModel)
Return true if minY is as small as the planet model allows.boolean
XYZBounds. isSmallestMinZ(PlanetModel planetModel)
Return true if minZ is as small as the planet model allows.double
Plane. linearDistance(PlanetModel planetModel, double x, double y, double z, Membership... bounds)
Compute linear distance from plane to a vector.double
Plane. linearDistance(PlanetModel planetModel, GeoPoint v, Membership... bounds)
Compute linear distance from plane to a vector.double
Plane. linearDistanceSquared(PlanetModel planetModel, double x, double y, double z, Membership... bounds)
Compute linear distance squared from plane to a vector.double
Plane. linearDistanceSquared(PlanetModel planetModel, GeoPoint v, Membership... bounds)
Compute linear distance squared from plane to a vector.private static boolean
GeoPolygonFactory. makeConcavePolygon(PlanetModel planetModel, GeoCompositePolygon rval, GeoPolygonFactory.MutableBoolean seenConcave, GeoPolygonFactory.EdgeBuffer edgeBuffer, java.util.List<GeoPolygon> holes, GeoPoint testPoint)
Look for a concave polygon in the remainder of the edgebuffer.static GeoCircle
GeoCircleFactory. makeExactGeoCircle(PlanetModel planetModel, double latitude, double longitude, double radius, double accuracy)
Create an GeoCircle from a center, a radius and a desired accuracy.static GeoArea
GeoAreaFactory. makeGeoArea(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon)
Create a GeoArea of the right kind given the specified bounds.static GeoArea
GeoAreaFactory. 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.static GeoBBox
GeoBBoxFactory. makeGeoBBox(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon)
Create a geobbox of the right kind given the specified bounds.static GeoBBox
GeoBBoxFactory. makeGeoBBox(PlanetModel planetModel, LatLonBounds bounds)
Create a geobbox of the right kind given the specifiedLatLonBounds
.static GeoCircle
GeoCircleFactory. makeGeoCircle(PlanetModel planetModel, double latitude, double longitude, double cutoffAngle)
Create a GeoCircle from a center and a cutoff angle.static GeoPolygon
GeoPolygonFactory. makeGeoConcavePolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList)
Create a GeoConcavePolygon using the specified points.static GeoPolygon
GeoPolygonFactory. makeGeoConcavePolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes)
Create a GeoConcavePolygon using the specified points and holes.static GeoPolygon
GeoPolygonFactory. makeGeoConvexPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList)
Create a GeoConvexPolygon using the specified points.static GeoPolygon
GeoPolygonFactory. makeGeoConvexPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes)
Create a GeoConvexPolygon using the specified points and holes.static GeoPath
GeoPathFactory. makeGeoPath(PlanetModel planetModel, double maxCutoffAngle, GeoPoint[] pathPoints)
Create a GeoPath of the right kind given the specified information.static GeoPointShape
GeoPointShapeFactory. makeGeoPointShape(PlanetModel planetModel, double lat, double lon)
Create a GeoPointShape with the provided information.static GeoPolygon
GeoPolygonFactory. makeGeoPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList)
Create a GeoPolygon using the specified points and holes, using order to determine siding of the polygon.static GeoPolygon
GeoPolygonFactory. makeGeoPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes)
Create a GeoPolygon using the specified points and holes, using order to determine siding of the polygon.static GeoPolygon
GeoPolygonFactory. makeGeoPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes, double leniencyValue)
Create a GeoPolygon using the specified points and holes, using order to determine siding of the polygon.static GeoPolygon
GeoPolygonFactory. makeGeoPolygon(PlanetModel planetModel, GeoPolygonFactory.PolygonDescription description)
Create a GeoPolygon using the specified points and holes, using order to determine siding of the polygon.static GeoPolygon
GeoPolygonFactory. makeGeoPolygon(PlanetModel planetModel, GeoPolygonFactory.PolygonDescription description, double leniencyValue)
Create a GeoPolygon using the specified points and holes, using order to determine siding of the polygon.static GeoPolygon
GeoS2ShapeFactory. makeGeoS2Shape(PlanetModel planetModel, GeoPoint point1, GeoPoint point2, GeoPoint point3, GeoPoint point4)
Creates a convex polygon with 4 planes by providing 4 points in CCW.static GeoPolygon
GeoPolygonFactory. makeLargeGeoPolygon(PlanetModel planetModel, java.util.List<GeoPolygonFactory.PolygonDescription> shapesList)
Create a large GeoPolygon.static XYZSolid
XYZSolidFactory. makeXYZSolid(PlanetModel planetModel, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
Create a XYZSolid of the right kind given (x,y,z) bounds.static XYZSolid
XYZSolidFactory. makeXYZSolid(PlanetModel planetModel, XYZBounds bounds)
Create a XYZSolid of the right kind given (x,y,z) bounds.Bounds
Bounds. noBound(PlanetModel planetModel)
Signal that there is no bound whatsoever.Bounds
LatLonBounds. noBound(PlanetModel planetModel)
Bounds
XYZBounds. noBound(PlanetModel planetModel)
private static GeoPoint
GeoPolygonFactory. pickPole(java.util.Random generator, PlanetModel planetModel, java.util.List<GeoPoint> points)
Pick a random pole that has a good chance of being inside the polygon described by the points.static <T extends SerializableObject>
T[]SerializableObject. readHeterogeneousArray(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz)
Read an array.static <T extends SerializableObject>
T[]SerializableObject. readHomogeneousArray(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz)
Read an array.static SerializableObject
SerializableObject. readObject(PlanetModel planetModel, java.io.InputStream inputStream)
Read an object from a stream (for objects that need a PlanetModel).static SerializableObject
SerializableObject. readObject(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<?> clazz)
Instantiate a serializable object from a stream.static GeoPoint[]
SerializableObject. readPointArray(PlanetModel planetModel, java.io.InputStream inputStream)
Read a point array.private static java.util.List<java.util.List<GeoPoint>>
GeoComplexPolygon. readPointsList(PlanetModel planetModel, java.io.InputStream inputStream)
static GeoPolygon[]
SerializableObject. readPolygonArray(PlanetModel planetModel, java.io.InputStream inputStream)
Read a polygon array.void
Plane. recordBounds(PlanetModel planetModel, LatLonBounds boundsInfo, Membership... bounds)
Accumulate bounds information for this plane, intersected with the unit sphere.void
Plane. recordBounds(PlanetModel planetModel, LatLonBounds boundsInfo, Plane p, Membership... bounds)
Accumulate bounds information for this plane, intersected with another plane and the world.void
Plane. recordBounds(PlanetModel planetModel, XYZBounds boundsInfo, Membership... bounds)
Accumulate (x,y,z) bounds information for this plane, intersected with the unit sphere.void
Plane. recordBounds(PlanetModel planetModel, XYZBounds boundsInfo, Plane p, Membership... bounds)
Accumulate (x,y,z) bounds information for this plane, intersected with another and the world.private static void
Plane. recordLineBounds(PlanetModel planetModel, Bounds boundsInfo, double lineVectorX, double lineVectorY, double lineVectorZ, double x0, double y0, double z0, Membership... bounds)
protected static GeoPoint
Plane. reverseModify(PlanetModel planetModel, Vector point, double transX, double transY, double transZ, double sinRA, double cosRA, double sinHA, double cosHA)
Reverse modify a point to produce a GeoPoint in normal space.Constructors in org.apache.lucene.spatial3d.geom with parameters of type PlanetModel Constructor Description BasePlanetObject(PlanetModel planetModel)
Constructor creating class instance given a planet model.BaseSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point)
BaseXYZSolid(PlanetModel planetModel)
Base solid constructor.CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, GeoPoint upperPoint, GeoPoint lowerPoint)
CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, Plane normalPlane, GeoPoint upperPoint, GeoPoint lowerPoint)
Constructor for case (1).CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, SidedPlane circlePlane)
Constructor for case (3).CutoffDualCircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, SidedPlane prevCutoffPlane, SidedPlane nextCutoffPlane, GeoPoint prevURHC, GeoPoint prevLRHC, GeoPoint currentULHC, GeoPoint currentLLHC)
CutoffSingleCircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, SidedPlane cutoffPlane, GeoPoint topEdgePoint, GeoPoint bottomEdgePoint)
Constructor for case (2).DocValueEncoder(PlanetModel planetModel)
construct an encoder/decoder instance from the provided PlanetModel definitiondXdYdZSolid(PlanetModel planetModel, double X, double Y, double Z)
Sole constructordXdYdZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.dXdYZSolid(PlanetModel planetModel, double X, double Y, double minZ, double maxZ)
Sole constructordXdYZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.dXYdZSolid(PlanetModel planetModel, double X, double minY, double maxY, double Z)
Sole constructordXYdZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.dXYZSolid(PlanetModel planetModel, double X, double minY, double maxY, double minZ, double maxZ)
Sole constructordXYZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.Edge(PlanetModel pm, GeoPoint startPoint, GeoPoint endPoint)
GeoBaseAreaShape(PlanetModel planetModel)
Constructor.GeoBaseBBox(PlanetModel planetModel)
Construct, given planet model.GeoBaseBounds(PlanetModel planetModel)
Constructor.GeoBaseCircle(PlanetModel planetModel)
Constructor.GeoBaseCompositeAreaShape(PlanetModel planetModel)
Constructor.GeoBaseCompositeAreaShape(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz)
Constructor for deserialization.GeoBaseCompositeMembershipShape(PlanetModel planetModel)
Constructor.GeoBaseCompositeMembershipShape(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz)
Constructor for deserialization.GeoBaseCompositeShape(PlanetModel planetModel)
Constructor.GeoBaseCompositeShape(PlanetModel planetModel, java.io.InputStream inputStream, java.lang.Class<T> clazz)
Constructor for deserialization.GeoBaseDistanceShape(PlanetModel planetModel)
Constructor.GeoBaseMembershipShape(PlanetModel planetModel)
Constructor.GeoBasePath(PlanetModel planetModel)
Constructor.GeoBasePolygon(PlanetModel planetModel)
Constructor.GeoBaseShape(PlanetModel planetModel)
Constructor.GeoComplexPolygon(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoComplexPolygon(PlanetModel planetModel, java.util.List<java.util.List<GeoPoint>> pointsList, GeoPoint testPoint, boolean testPointInSet)
Create a complex polygon from multiple lists of points, and a single point which is known to be in or out of set.GeoCompositeAreaShape(PlanetModel planetModel)
Constructor.GeoCompositeAreaShape(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoCompositeMembershipShape(PlanetModel planetModel)
Constructor.GeoCompositeMembershipShape(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoCompositePolygon(PlanetModel planetModel)
Constructor.GeoCompositePolygon(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoConcavePolygon(PlanetModel planetModel, double startLatitude, double startLongitude)
Create a concave polygon, with a starting latitude and longitude.GeoConcavePolygon(PlanetModel planetModel, double startLatitude, double startLongitude, java.util.List<GeoPolygon> holes)
Create a concave polygon, with a starting latitude and longitude.GeoConcavePolygon(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoConcavePolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList)
Create a concave polygon from a list of points.GeoConcavePolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.BitSet internalEdgeFlags, boolean returnEdgeInternal)
Create a concave polygon from a list of points, keeping track of which boundaries are internal.GeoConcavePolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes)
Create a concave polygon from a list of points.GeoConcavePolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes, java.util.BitSet internalEdgeFlags, boolean returnEdgeInternal)
Create a concave polygon from a list of points, keeping track of which boundaries are internal.GeoConvexPolygon(PlanetModel planetModel, double startLatitude, double startLongitude)
Create a convex polygon, with a starting latitude and longitude.GeoConvexPolygon(PlanetModel planetModel, double startLatitude, double startLongitude, java.util.List<GeoPolygon> holes)
Create a convex polygon, with a starting latitude and longitude.GeoConvexPolygon(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoConvexPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList)
Create a convex polygon from a list of points.GeoConvexPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.BitSet internalEdgeFlags, boolean returnEdgeInternal)
Create a convex polygon from a list of points, keeping track of which boundaries are internal.GeoConvexPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes)
Create a convex polygon from a list of points.GeoConvexPolygon(PlanetModel planetModel, java.util.List<GeoPoint> pointList, java.util.List<GeoPolygon> holes, java.util.BitSet internalEdgeFlags, boolean returnEdgeInternal)
Create a convex polygon from a list of points, keeping track of which boundaries are internal.GeoDegenerateHorizontalLine(PlanetModel planetModel, double latitude, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
GeoDegenerateHorizontalLine(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoDegenerateLatitudeZone(PlanetModel planetModel, double latitude)
Constructor.GeoDegenerateLatitudeZone(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoDegenerateLongitudeSlice(PlanetModel planetModel, double longitude)
Accepts only values in the following ranges: lon:-PI -> PI
GeoDegenerateLongitudeSlice(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoDegeneratePath(PlanetModel planetModel)
Piece-wise constructor.GeoDegeneratePath(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoDegeneratePath(PlanetModel planetModel, GeoPoint[] pathPoints)
Constructor.GeoDegeneratePoint(PlanetModel planetModel, double lat, double lon)
Constructor.GeoDegeneratePoint(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoDegenerateVerticalLine(PlanetModel planetModel, double topLat, double bottomLat, double longitude)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, longitude:-PI -> PI
GeoDegenerateVerticalLine(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoExactCircle(PlanetModel planetModel, double lat, double lon, double radius, double accuracy)
Constructor.GeoExactCircle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoLatitudeZone(PlanetModel planetModel, double topLat, double bottomLat)
Constructor.GeoLatitudeZone(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoLongitudeSlice(PlanetModel planetModel, double leftLon, double rightLon)
Accepts only values in the following ranges: lon:-PI -> PI
GeoLongitudeSlice(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoNorthLatitudeZone(PlanetModel planetModel, double bottomLat)
Constructor.GeoNorthLatitudeZone(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoNorthRectangle(PlanetModel planetModel, double bottomLat, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
GeoNorthRectangle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoPoint(PlanetModel planetModel, double lat, double lon)
Construct a GeoPoint from a latitude/longitude pair.GeoPoint(PlanetModel planetModel, double sinLat, double sinLon, double cosLat, double cosLon)
Construct a GeoPoint from the trig functions of a lat and lon pair.GeoPoint(PlanetModel planetModel, double sinLat, double sinLon, double cosLat, double cosLon, double lat, double lon)
Construct a GeoPoint from the trig functions of a lat and lon pair.GeoPoint(PlanetModel planetModel, java.io.InputStream inputStream)
Construct a GeoPoint from an input stream.GeoRectangle(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
GeoRectangle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoS2Shape(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoS2Shape(PlanetModel planetModel, GeoPoint point1, GeoPoint point2, GeoPoint point3, GeoPoint point4)
It builds from 4 points given in CCW.GeoSouthLatitudeZone(PlanetModel planetModel, double topLat)
Constructor.GeoSouthLatitudeZone(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoSouthRectangle(PlanetModel planetModel, double topLat, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
GeoSouthRectangle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoStandardCircle(PlanetModel planetModel, double lat, double lon, double cutoffAngle)
Constructor.GeoStandardCircle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoStandardPath(PlanetModel planetModel, double maxCutoffAngle)
Piece-wise constructor.GeoStandardPath(PlanetModel planetModel, double maxCutoffAngle, GeoPoint[] pathPoints)
Constructor.GeoStandardPath(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoWideDegenerateHorizontalLine(PlanetModel planetModel, double latitude, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
.GeoWideDegenerateHorizontalLine(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoWideLongitudeSlice(PlanetModel planetModel, double leftLon, double rightLon)
Accepts only values in the following ranges: lon:-PI -> PI
.GeoWideLongitudeSlice(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoWideNorthRectangle(PlanetModel planetModel, double bottomLat, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
.GeoWideNorthRectangle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoWideRectangle(PlanetModel planetModel, double topLat, double bottomLat, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
.GeoWideRectangle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoWideSouthRectangle(PlanetModel planetModel, double topLat, double leftLon, double rightLon)
Accepts only values in the following ranges: lat:-PI/2 -> PI/2
, lon:-PI -> PI
.GeoWideSouthRectangle(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.GeoWorld(PlanetModel planetModel)
Constructor.GeoWorld(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor.PathSegment(PlanetModel planetModel, GeoPoint start, GeoPoint end, Plane normalizedConnectingPlane)
Construct a path segment.PathSegment(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint start, GeoPoint end, Plane normalizedConnectingPlane, double planeBoundingOffset)
Construct a path segment.Plane(PlanetModel planetModel, double sinLat)
Construct a horizontal plane at a specified Z.SegmentEndpoint(PlanetModel planetModel, GeoPoint point)
Constructor for case (1).SegmentEndpoint(PlanetModel planetModel, GeoPoint point, SidedPlane cutoffPlane)
Constructor for case (2).SegmentEndpoint(PlanetModel planetModel, GeoPoint point, SidedPlane cutoffPlane1, SidedPlane cutoffPlane2)
Constructor for case (3).SidedPlane(Vector p, PlanetModel planetModel, double sinLat)
Construct a sided plane from a point and a Z coordinate.StandardXYZSolid(PlanetModel planetModel, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
Sole constructorStandardXYZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.XdYdZSolid(PlanetModel planetModel, double minX, double maxX, double Y, double Z)
Sole constructorXdYdZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.XdYZSolid(PlanetModel planetModel, double minX, double maxX, double Y, double minZ, double maxZ)
Sole constructorXdYZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.XYdZSolid(PlanetModel planetModel, double minX, double maxX, double minY, double maxY, double Z)
Sole constructorXYdZSolid(PlanetModel planetModel, java.io.InputStream inputStream)
Constructor for deserialization.
-