Package org.elasticsearch.common.geo
Class GeoShapeUtils
java.lang.Object
org.elasticsearch.common.geo.GeoShapeUtils
Utility class that transforms Elasticsearch geometry objects to the Lucene representation
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.geo.Circle
toLuceneCircle(org.elasticsearch.geometry.Circle circle)
static org.apache.lucene.geo.LatLonGeometry[]
toLuceneGeometry(String name, SearchExecutionContext context, org.elasticsearch.geometry.Geometry geometry, ShapeRelation relation)
static org.apache.lucene.geo.Line
toLuceneLine(org.elasticsearch.geometry.Line line)
static org.apache.lucene.geo.Point
toLucenePoint(org.elasticsearch.geometry.Point point)
static org.apache.lucene.geo.Polygon
toLucenePolygon(org.elasticsearch.geometry.Polygon polygon)
static org.apache.lucene.geo.Polygon
toLucenePolygon(org.elasticsearch.geometry.Rectangle r)
static org.apache.lucene.geo.Rectangle
toLuceneRectangle(org.elasticsearch.geometry.Rectangle r)
-
Method Details
-
toLucenePolygon
public static org.apache.lucene.geo.Polygon toLucenePolygon(org.elasticsearch.geometry.Polygon polygon) -
toLucenePolygon
public static org.apache.lucene.geo.Polygon toLucenePolygon(org.elasticsearch.geometry.Rectangle r) -
toLuceneRectangle
public static org.apache.lucene.geo.Rectangle toLuceneRectangle(org.elasticsearch.geometry.Rectangle r) -
toLucenePoint
public static org.apache.lucene.geo.Point toLucenePoint(org.elasticsearch.geometry.Point point) -
toLuceneLine
public static org.apache.lucene.geo.Line toLuceneLine(org.elasticsearch.geometry.Line line) -
toLuceneCircle
public static org.apache.lucene.geo.Circle toLuceneCircle(org.elasticsearch.geometry.Circle circle) -
toLuceneGeometry
public static org.apache.lucene.geo.LatLonGeometry[] toLuceneGeometry(String name, SearchExecutionContext context, org.elasticsearch.geometry.Geometry geometry, ShapeRelation relation)
-