Class GeoWKTParser
org.elasticsearch.common.geo.parsers.GeoWKTParser
public class GeoWKTParser
extends
Parses 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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShapeBuilder
parse(org.elasticsearch.common.xcontent.XContentParser parser, AbstractShapeGeometryFieldMapper shapeMapper)
static ShapeBuilder
parseExpectedType(org.elasticsearch.common.xcontent.XContentParser parser, GeoShapeType shapeType)
static ShapeBuilder
parseExpectedType(org.elasticsearch.common.xcontent.XContentParser parser, GeoShapeType shapeType, AbstractShapeGeometryFieldMapper shapeMapper)
throws an exception if the parsed geometry type does not match the expected shape typeMethods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
EMPTY
public static final EMPTY- See Also:
- Constant Field Values
-
SPACE
public static final SPACE- See Also:
- Constant Field Values
-
LPAREN
public static final LPAREN- See Also:
- Constant Field Values
-
RPAREN
public static final RPAREN- See Also:
- Constant Field Values
-
COMMA
public static final COMMA- See Also:
- Constant Field Values
-
NAN
public static final NAN- See Also:
- Constant Field Values
-
-
Method Details
-
parse
public static ShapeBuilder parse(org.elasticsearch.common.xcontent.XContentParser parser, AbstractShapeGeometryFieldMapper shapeMapper) throws , ElasticsearchParseException- Throws:
ElasticsearchParseException
-
parseExpectedType
public static ShapeBuilder parseExpectedType(org.elasticsearch.common.xcontent.XContentParser parser, GeoShapeType shapeType) throws , ElasticsearchParseException- Throws:
ElasticsearchParseException
-
parseExpectedType
public static ShapeBuilder parseExpectedType(org.elasticsearch.common.xcontent.XContentParser parser, GeoShapeType shapeType, AbstractShapeGeometryFieldMapper shapeMapper) throws , ElasticsearchParseExceptionthrows an exception if the parsed geometry type does not match the expected shape type- Throws:
ElasticsearchParseException
-