Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.geo |
Geospatial Utility Implementations for Lucene Core
|
org.apache.lucene.spatial3d |
Lucene field & query support for the spatial geometry implemented in
org.apache.lucene.spatial3d.geom . |
Modifier and Type | Method and Description |
---|---|
static Field[] |
LatLonShape.createIndexableFields(java.lang.String fieldName,
Polygon polygon)
create indexable fields for polygon geometry
|
static Query |
LatLonShape.newPolygonQuery(java.lang.String field,
LatLonShape.QueryRelation queryRelation,
Polygon... polygons)
create a query to find all polygons that intersect a provided polygon (or array of polygons)
note: does not support dateline crossing
|
static Query |
LatLonPoint.newPolygonQuery(java.lang.String field,
Polygon... polygons)
Create a query for matching one or more polygons.
|
Modifier and Type | Method and Description |
---|---|
static Polygon |
GeoTestUtil.createRegularPolygon(double centerLat,
double centerLon,
double radiusMeters,
int gons)
Makes an n-gon, centered at the provided lat/lon, and each vertex approximately
distanceMeters away from the center.
|
static Polygon[] |
Polygon.fromGeoJSON(java.lang.String geojson)
Parses a standard GeoJSON polygon string.
|
Polygon[] |
Polygon.getHoles()
Returns a copy of the internal holes array
|
protected Polygon |
BaseGeoPointTestCase.nextPolygon() |
static Polygon |
GeoTestUtil.nextPolygon()
returns next pseudorandom polygon
|
Modifier and Type | Method and Description |
---|---|
void |
EarthDebugger.addPolygon(Polygon poly) |
void |
EarthDebugger.addPolygon(Polygon poly,
java.lang.String color) |
static boolean |
GeoTestUtil.containsSlowly(Polygon polygon,
double latitude,
double longitude)
Simple slow point in polygon check (for testing)
|
static Polygon2D |
Polygon2D.create(Polygon... polygons)
Builds a Polygon2D from multipolygon
|
static GeoEncodingUtils.PolygonPredicate |
GeoEncodingUtils.createPolygonPredicate(Polygon[] polygons,
Polygon2D tree)
Create a predicate that checks whether points are within a polygon.
|
static Rectangle |
Rectangle.fromPolygon(Polygon[] polygons)
Returns the bounding box over an array of polygons
|
protected abstract Query |
BaseGeoPointTestCase.newPolygonQuery(java.lang.String field,
Polygon... polygon) |
static Rectangle |
GeoTestUtil.nextBoxNear(Polygon polygon)
Returns next box for testing near a Polygon
|
static double[] |
GeoTestUtil.nextPointNear(Polygon polygon)
Returns next point (lat/lon) for testing near a Polygon
|
static java.util.List<Tessellator.Triangle> |
Tessellator.tessellate(Polygon polygon)
Produces an array of vertices representing the triangulated result set of the Points array
|
Constructor and Description |
---|
Node(Polygon polygon,
int index,
int vertexIndex) |
Polygon(double[] polyLats,
double[] polyLons,
Polygon... holes)
Creates a new Polygon from the supplied latitude/longitude array, and optionally any holes.
|
Modifier and Type | Method and Description |
---|---|
static Query |
Geo3DPoint.newLargePolygonQuery(java.lang.String field,
Polygon... polygons)
Create a query for matching a large polygon.
|
static SortField |
Geo3DDocValuesField.newOutsideLargePolygonSort(java.lang.String field,
Polygon... polygons)
Creates a SortField for sorting by outside distance from a large polygon.
|
static SortField |
Geo3DDocValuesField.newOutsidePolygonSort(java.lang.String field,
Polygon... polygons)
Creates a SortField for sorting by outside distance from a polygon.
|
static Query |
Geo3DPoint.newPolygonQuery(java.lang.String field,
Polygon... polygons)
Create a query for matching a polygon.
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.