Class GeoShapeUtils

java.lang.Object
org.elasticsearch.common.geo.GeoShapeUtils

public class GeoShapeUtils extends Object
Utility class that transforms Elasticsearch geometry objects to the Lucene representation
  • 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)