Class GeoShapeUtils

org.elasticsearch.common.geo.GeoShapeUtils

public class GeoShapeUtils extends
Utility class that transforms Elasticsearch geometry objects to the Lucene representation
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.lucene.geo.Circle
    toLuceneCircle​(org.elasticsearch.geometry.Circle circle)
     
    static org.apache.lucene.geo.LatLonGeometry[]
     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)
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • 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( name, SearchExecutionContext context, org.elasticsearch.geometry.Geometry geometry, ShapeRelation relation)