Package org.elasticsearch.common.geo
Class GeometryParser
- java.lang.Object
-
- org.elasticsearch.common.geo.GeometryParser
-
public final class GeometryParser extends Object
An utility class with a geometry parser methods supporting different shape representation formats
-
-
Constructor Summary
Constructors Constructor Description GeometryParser(boolean rightOrientation, boolean coerce, boolean ignoreZValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryFormatgeometryFormat(XContentParser parser)Returns a geometry format object that can parse and then serialize the object back to the same format.Geometryparse(XContentParser parser)Parses supplied XContent into Geometry
-
-
-
Method Detail
-
parse
public Geometry parse(XContentParser parser) throws IOException, ParseException
Parses supplied XContent into Geometry- Throws:
IOExceptionParseException
-
geometryFormat
public GeometryFormat geometryFormat(XContentParser parser)
Returns a geometry format object that can parse and then serialize the object back to the same format.
-
-