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
|
Modifier and Type | Field and Description |
---|---|
(package private) Polygon[] |
LatLonShapePolygonQuery.polygons |
(package private) Polygon[] |
LatLonPointInPolygonQuery.polygons |
Modifier and Type | Method and Description |
---|---|
Polygon[] |
LatLonPointInPolygonQuery.getPolygons()
Returns a copy of the internal polygon array
|
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.
|
Constructor and Description |
---|
LatLonPointInPolygonQuery(java.lang.String field,
Polygon[] polygons) |
LatLonShapePolygonQuery(java.lang.String field,
LatLonShape.QueryRelation queryRelation,
Polygon... polygons)
Creates a query that matches all indexed shapes to the provided polygons
|
Modifier and Type | Field and Description |
---|---|
private Polygon[] |
Polygon.holes |
private Polygon |
Tessellator.Node.polygon |
Modifier and Type | Method and Description |
---|---|
static Polygon[] |
Polygon.fromGeoJSON(java.lang.String geojson)
Parses a standard GeoJSON polygon string.
|
(package private) Polygon |
Polygon.getHole(int i) |
Polygon[] |
Polygon.getHoles()
Returns a copy of the internal holes array
|
Polygon[] |
SimpleGeoJSONPolygonParser.parse() |
private static Polygon[] |
SimpleWKTShapeParser.parseMultiPolygon(java.io.StreamTokenizer stream)
parses a MULTIPOLYGON
|
private Polygon |
SimpleGeoJSONPolygonParser.parsePolygon(java.util.List<java.lang.Object> coordinates) |
private static Polygon |
SimpleWKTShapeParser.parsePolygon(java.io.StreamTokenizer stream)
parses a POLYGON
|
private static Polygon |
SimpleWKTShapeParser.parsePolygonHole(java.io.StreamTokenizer stream)
parses the hole of a polygon
|
Modifier and Type | Method and Description |
---|---|
static Polygon2D |
Polygon2D.create(Polygon... polygons)
Builds a Polygon2D from multipolygon
|
private static Tessellator.Node |
Tessellator.createDoublyLinkedList(Polygon polygon,
int startIndex,
GeoUtils.WindingOrder windingOrder)
Creates a circular doubly linked list using polygon points.
|
static GeoEncodingUtils.PolygonPredicate |
GeoEncodingUtils.createPolygonPredicate(Polygon[] polygons,
Polygon2D tree)
Create a predicate that checks whether points are within a polygon.
|
private static Tessellator.Node |
Tessellator.eliminateHoles(Polygon polygon,
Tessellator.Node outerNode)
Links every hole into the outer loop, producing a single-ring polygon without holes.
|
static Rectangle |
Rectangle.fromPolygon(Polygon[] polygons)
Returns the bounding box over an array of polygons
|
private static Tessellator.Node |
Tessellator.insertNode(Polygon polygon,
int index,
int vertexIndex,
Tessellator.Node lastNode)
Creates a node and optionally links it with a previous node in a circular doubly-linked list
|
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.
|
Polygon2D(Polygon polygon,
Polygon2D holes) |