Package org.elasticsearch.common.geo
Interface GeometryFormat
public interface GeometryFormat
Geometry serializer/deserializer
-
Method Summary
Modifier and Type Method Description Geometry
fromXContent(XContentParser parser)
Parser JSON representation of a geometryXContentBuilder
toXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params)
Serializes the geometry into its JSON representation
-
Method Details
-
fromXContent
Parser JSON representation of a geometry- Throws:
java.io.IOException
java.text.ParseException
-
toXContent
XContentBuilder toXContent(Geometry geometry, XContentBuilder builder, ToXContent.Params params) throws java.io.IOExceptionSerializes the geometry into its JSON representation- Throws:
java.io.IOException
-