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(Polygon polygon)
    • toLucenePolygon

      public static org.apache.lucene.geo.Polygon toLucenePolygon(Rectangle r)
    • toLuceneRectangle

      public static org.apache.lucene.geo.Rectangle toLuceneRectangle(Rectangle r)
    • toLucenePoint

      public static org.apache.lucene.geo.Point toLucenePoint(Point point)
    • toLuceneLine

      public static org.apache.lucene.geo.Line toLuceneLine(Line line)
    • toLuceneCircle

      public static org.apache.lucene.geo.Circle toLuceneCircle(Circle circle)
    • toLuceneGeometry

      public static org.apache.lucene.geo.LatLonGeometry[] toLuceneGeometry(String name, SearchExecutionContext context, Geometry geometry, ShapeRelation relation)