Uses of Class
org.apache.lucene.geo.Polygon
-
Packages that use Polygon Package Description org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.geo Geospatial Utility Implementations for Lucene Coreorg.apache.lucene.spatial3d Lucene field & query support for the spatial geometry implemented inorg.apache.lucene.spatial3d.geom
. -
-
Uses of Polygon in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type Polygon Modifier and Type Method Description static Field[]
LatLonShape. createIndexableFields(java.lang.String fieldName, Polygon polygon)
create indexable fields for polygon geometry.static Field[]
LatLonShape. createIndexableFields(java.lang.String fieldName, Polygon polygon, boolean checkSelfIntersections)
create indexable fields for polygon geometry.static Query
LatLonPoint. newPolygonQuery(java.lang.String field, Polygon... polygons)
Create a query for matching one or more polygons.static Query
LatLonShape. newPolygonQuery(java.lang.String field, ShapeField.QueryRelation queryRelation, Polygon... polygons)
create a query to find all indexed geo shapes that intersect a provided polygon (or array of polygons) note: does not support dateline crossingstatic Query
LatLonDocValuesField. newSlowPolygonQuery(java.lang.String field, Polygon... polygons)
Create a query for matching points within the supplied polygons. -
Uses of Polygon in org.apache.lucene.geo
Fields in org.apache.lucene.geo declared as Polygon Modifier and Type Field Description private Polygon[]
Polygon. holes
Methods in org.apache.lucene.geo that return Polygon Modifier and Type Method 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 arrayPolygon[]
SimpleGeoJSONPolygonParser. parse()
private static Polygon[]
SimpleWKTShapeParser. parseMultiPolygon(java.io.StreamTokenizer stream)
parses a MULTIPOLYGONprivate Polygon
SimpleGeoJSONPolygonParser. parsePolygon(java.util.List<java.lang.Object> coordinates)
private static Polygon
SimpleWKTShapeParser. parsePolygon(java.io.StreamTokenizer stream)
parses a POLYGONprivate static Polygon
SimpleWKTShapeParser. parsePolygonHole(java.io.StreamTokenizer stream)
parses the hole of a polygonMethods in org.apache.lucene.geo with parameters of type Polygon Modifier and Type Method Description (package private) static Component2D
Polygon2D. create(Polygon polygon)
Builds a Polygon2D from LatLon polygonprivate 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 polygonsstatic java.util.List<Tessellator.Triangle>
Tessellator. tessellate(Polygon polygon, boolean checkSelfIntersections)
Constructors in org.apache.lucene.geo with parameters of type Polygon Constructor Description Polygon(double[] polyLats, double[] polyLons, Polygon... holes)
Creates a new Polygon from the supplied latitude/longitude array, and optionally any holes.Polygon2D(Polygon polygon, Component2D holes)
-
Uses of Polygon in org.apache.lucene.spatial3d
Methods in org.apache.lucene.spatial3d with parameters of type Polygon 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.(package private) static GeoPolygon
Geo3DUtil. fromLargePolygon(PlanetModel planetModel, Polygon... polygons)
Convert a Polygon object to a large GeoPolygon.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. newLargePolygonQuery(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Create a query for matching a large polygon.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. newOutsidePolygonSort(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Creates a SortField for sorting by outside distance from a polygon.static Query
Geo3DPoint. newPolygonQuery(java.lang.String field, PlanetModel planetModel, Polygon... polygons)
Create a query for matching a polygon.
-