Class GeoJson

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

public final class GeoJson extends Object
Utility class for converting libs/geo shapes to and from GeoJson
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.elasticsearch.geometry.Geometry
    fromXContent(org.elasticsearch.geometry.utils.GeometryValidator validator, boolean coerce, boolean rightOrientation, org.elasticsearch.xcontent.XContentParser parser)
     
    static String
    getGeoJsonName(org.elasticsearch.geometry.Geometry geometry)
     
    static Map<String,Object>
    toMap(org.elasticsearch.geometry.Geometry geometry)
    Produces that same GeoJSON as toXContent only in parsed map form
    static org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.geometry.Geometry geometry, org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fromXContent

      public static org.elasticsearch.geometry.Geometry fromXContent(org.elasticsearch.geometry.utils.GeometryValidator validator, boolean coerce, boolean rightOrientation, org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • toXContent

      public static org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.geometry.Geometry geometry, org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • toMap

      public static Map<String,Object> toMap(org.elasticsearch.geometry.Geometry geometry)
      Produces that same GeoJSON as toXContent only in parsed map form
    • getGeoJsonName

      public static String getGeoJsonName(org.elasticsearch.geometry.Geometry geometry)