Package | Description |
---|---|
org.apache.lucene.geo |
Geospatial Utility Implementations for Lucene Core
|
Modifier and Type | Method and Description |
---|---|
static Polygon[] |
Polygon.fromGeoJSON(String geojson)
Parses a standard GeoJSON polygon string.
|
Polygon[] |
Polygon.getHoles()
Returns a copy of the internal holes array
|
Modifier and Type | Method and Description |
---|---|
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
|
Constructor and Description |
---|
Polygon(double[] polyLats,
double[] polyLons,
Polygon... holes)
Creates a new Polygon from the supplied latitude/longitude array, and optionally any holes.
|
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.