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.common.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.common.xcontent.XContentBuilder
    toXContent​(org.elasticsearch.geometry.Geometry geometry, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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.common.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • toXContent

      public static org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.geometry.Geometry geometry, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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)