Class GeoWKTParser
- java.lang.Object
-
- org.elasticsearch.common.geo.parsers.GeoWKTParser
-
public class GeoWKTParser extends java.lang.ObjectParses shape geometry represented in WKT format complies with OGC® document: 12-063r5 and ISO/IEC 13249-3:2016 standard located at http://docs.opengeospatial.org/is/12-063r5/12-063r5.html
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShapeBuilderparse(XContentParser parser, BaseGeoShapeFieldMapper shapeMapper)static ShapeBuilderparseExpectedType(XContentParser parser, GeoShapeType shapeType)static ShapeBuilderparseExpectedType(XContentParser parser, GeoShapeType shapeType, BaseGeoShapeFieldMapper shapeMapper)throws an exception if the parsed geometry type does not match the expected shape type
-
-
-
Field Detail
-
EMPTY
public static final java.lang.String EMPTY
- See Also:
- Constant Field Values
-
SPACE
public static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
LPAREN
public static final java.lang.String LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final java.lang.String RPAREN
- See Also:
- Constant Field Values
-
COMMA
public static final java.lang.String COMMA
- See Also:
- Constant Field Values
-
NAN
public static final java.lang.String NAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static ShapeBuilder parse(XContentParser parser, BaseGeoShapeFieldMapper shapeMapper) throws java.io.IOException, ElasticsearchParseException
- Throws:
java.io.IOExceptionElasticsearchParseException
-
parseExpectedType
public static ShapeBuilder parseExpectedType(XContentParser parser, GeoShapeType shapeType) throws java.io.IOException, ElasticsearchParseException
- Throws:
java.io.IOExceptionElasticsearchParseException
-
parseExpectedType
public static ShapeBuilder parseExpectedType(XContentParser parser, GeoShapeType shapeType, BaseGeoShapeFieldMapper shapeMapper) throws java.io.IOException, ElasticsearchParseException
throws an exception if the parsed geometry type does not match the expected shape type- Throws:
java.io.IOExceptionElasticsearchParseException
-
-