Class GeoJson

org.elasticsearch.common.geo.GeoJson

public final class GeoJson extends
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
    getGeoJsonName​(org.elasticsearch.geometry.Geometry geometry)
     
    static <,​>
    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.

    , , , , , , , , , ,
  • 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
      Throws:
    • 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
      Throws:
    • toMap

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

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