Package org.elasticsearch.common.geo
Class GeoJson
java.lang.Object
org.elasticsearch.common.geo.GeoJson
Utility class for converting libs/geo shapes to and from GeoJson
-
Method Summary
Modifier and TypeMethodDescriptionstatic Geometry
fromXContent
(GeometryValidator validator, boolean coerce, boolean rightOrientation, XContentParser parser) static String
getGeoJsonName
(Geometry geometry) Produces that same GeoJSON as toXContent only in parsed map formstatic XContentBuilder
toXContent
(Geometry geometry, XContentBuilder builder, ToXContent.Params params)
-
Method Details
-
fromXContent
public static Geometry fromXContent(GeometryValidator validator, boolean coerce, boolean rightOrientation, XContentParser parser) throws IOException - Throws:
IOException
-
toXContent
public static XContentBuilder toXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
toMap
Produces that same GeoJSON as toXContent only in parsed map form -
getGeoJsonName
-