Package org.elasticsearch.common.geo
Class GeoJson
- java.lang.Object
-
- org.elasticsearch.common.geo.GeoJson
-
public final class GeoJson extends java.lang.Object
Utility class for converting libs/geo shapes to and from GeoJson
-
-
Method Summary
Modifier and Type Method Description static Geometry
fromXContent(XContentParser parser, boolean rightOrientation, boolean coerce, boolean ignoreZValue)
static java.lang.String
getGeoJsonName(Geometry geometry)
static XContentBuilder
toXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params)
-
-
-
Method Detail
-
fromXContent
public static Geometry fromXContent(XContentParser parser, boolean rightOrientation, boolean coerce, boolean ignoreZValue) throws java.io.IOException
- Throws:
java.io.IOException
-
toXContent
public static XContentBuilder toXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Throws:
java.io.IOException
-
getGeoJsonName
public static java.lang.String getGeoJsonName(Geometry geometry)
-
-