Package org.elasticsearch.common.geo
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
-
-
Constructor Summary
Constructors Constructor Description GeoJson(boolean rightOrientation, boolean coerce, GeometryValidator validator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryfromXContent(XContentParser parser)static StringgetGeoJsonName(Geometry geometry)static XContentBuildertoXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params)
-
-
-
Constructor Detail
-
GeoJson
public GeoJson(boolean rightOrientation, boolean coerce, GeometryValidator validator)
-
-
Method Detail
-
fromXContent
public Geometry fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
toXContent
public static XContentBuilder toXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params) throws IOException
- Throws:
IOException
-
-