Uses of Class
org.apache.lucene.geo.Polygon
Packages that use Polygon
Package
Description
The logical representation of a
Document for indexing and
searching.Geospatial Utility Implementations for Lucene Core
Lucene field & query support for the spatial geometry implemented in
org.apache.lucene.spatial3d.geom.-
Uses of Polygon in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type PolygonModifier and TypeMethodDescriptionstatic LatLonShapeDocValuesFieldLatLonShape.createDocValueField(String fieldName, Polygon polygon) create doc value field for lat lon polygon geometry without creating indexable fieldsstatic LatLonShapeDocValuesFieldLatLonShape.createDocValueField(String fieldName, Polygon polygon, boolean checkSelfIntersections) create doc value field for lat lon polygon geometry without creating indexable fields.static Field[]LatLonShape.createIndexableFields(String fieldName, Polygon polygon) create indexable fields for polygon geometry.static Field[]LatLonShape.createIndexableFields(String fieldName, Polygon polygon, boolean checkSelfIntersections) create indexable fields for polygon geometry.static QueryLatLonPoint.newPolygonQuery(String field, Polygon... polygons) Create a query for matching one or more polygons.static QueryLatLonShape.newPolygonQuery(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 QueryLatLonDocValuesField.newSlowPolygonQuery(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 PolygonMethods in org.apache.lucene.geo that return PolygonModifier and TypeMethodDescriptionstatic Polygon[]Polygon.fromGeoJSON(String geojson) Parses a standard GeoJSON polygon string.(package private) PolygonPolygon.getHole(int i) Polygon[]Polygon.getHoles()Returns a copy of the internal holes arrayPolygon[]SimpleGeoJSONPolygonParser.parse()private static Polygon[]SimpleWKTShapeParser.parseMultiPolygon(StreamTokenizer stream) parses a MULTIPOLYGONprivate PolygonSimpleGeoJSONPolygonParser.parsePolygon(List<Object> coordinates) private static PolygonSimpleWKTShapeParser.parsePolygon(StreamTokenizer stream) parses a POLYGONprivate static PolygonSimpleWKTShapeParser.parsePolygonHole(StreamTokenizer stream) parses the hole of a polygonMethods in org.apache.lucene.geo with parameters of type PolygonModifier and TypeMethodDescription(package private) static Component2DBuilds a Polygon2D from LatLon polygonprivate static final Tessellator.NodeTessellator.eliminateHoles(Polygon polygon, Tessellator.Node outerNode) Links every hole into the outer loop, producing a single-ring polygon without holes.static RectangleRectangle.fromPolygon(Polygon[] polygons) Returns the bounding box over an array of polygonsstatic List<Tessellator.Triangle> Tessellator.tessellate(Polygon polygon, boolean checkSelfIntersections) static List<Tessellator.Triangle> Tessellator.tessellate(Polygon polygon, boolean checkSelfIntersections, Tessellator.Monitor monitor) Constructors in org.apache.lucene.geo with parameters of type PolygonModifierConstructorDescriptionCreates a new Polygon from the supplied latitude/longitude array, and optionally any holes.privatePolygon2D(Polygon polygon, Component2D holes) -
Uses of Polygon in org.apache.lucene.spatial3d
Methods in org.apache.lucene.spatial3d with parameters of type PolygonModifier and TypeMethodDescriptionprivate static List<GeoPolygonFactory.PolygonDescription> Geo3DUtil.convertToDescription(PlanetModel planetModel, Polygon... polygons) Convert a list of polygons to a list of polygon descriptions.(package private) static GeoPolygonGeo3DUtil.fromLargePolygon(PlanetModel planetModel, Polygon... polygons) Convert a Polygon object to a large GeoPolygon.private static GeoPolygonGeo3DUtil.fromPolygon(PlanetModel planetModel, Polygon polygon) Convert a Polygon object into a GeoPolygon.(package private) static GeoPolygonGeo3DUtil.fromPolygon(PlanetModel planetModel, Polygon... polygons) Convert a set of Polygon objects into a GeoPolygon.static QueryGeo3DPoint.newLargePolygonQuery(String field, PlanetModel planetModel, Polygon... polygons) Create a query for matching a large polygon.static SortFieldGeo3DDocValuesField.newOutsideLargePolygonSort(String field, PlanetModel planetModel, Polygon... polygons) Creates a SortField for sorting by outside distance from a large polygon.static SortFieldGeo3DDocValuesField.newOutsidePolygonSort(String field, PlanetModel planetModel, Polygon... polygons) Creates a SortField for sorting by outside distance from a polygon.static QueryGeo3DPoint.newPolygonQuery(String field, PlanetModel planetModel, Polygon... polygons) Create a query for matching a polygon.