Class GeoWKTParser
java.lang.Object
org.opensearch.common.geo.parsers.GeoWKTParser
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
- Opensearch.internal:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ShapeBuilder
parse
(org.opensearch.common.xcontent.XContentParser parser, AbstractShapeGeometryFieldMapper shapeMapper) static ShapeBuilder
parseExpectedType
(org.opensearch.common.xcontent.XContentParser parser, GeoShapeType shapeType) static ShapeBuilder
parseExpectedType
(org.opensearch.common.xcontent.XContentParser parser, GeoShapeType shapeType, AbstractShapeGeometryFieldMapper shapeMapper) throws an exception if the parsed geometry type does not match the expected shape type
-
Field Details
-
EMPTY
- See Also:
-
SPACE
- See Also:
-
LPAREN
- See Also:
-
RPAREN
- See Also:
-
COMMA
- See Also:
-
NAN
- See Also:
-
-
Method Details
-
parse
public static ShapeBuilder parse(org.opensearch.common.xcontent.XContentParser parser, AbstractShapeGeometryFieldMapper shapeMapper) throws IOException, OpenSearchParseException - Throws:
IOException
OpenSearchParseException
-
parseExpectedType
public static ShapeBuilder parseExpectedType(org.opensearch.common.xcontent.XContentParser parser, GeoShapeType shapeType) throws IOException, OpenSearchParseException - Throws:
IOException
OpenSearchParseException
-
parseExpectedType
public static ShapeBuilder parseExpectedType(org.opensearch.common.xcontent.XContentParser parser, GeoShapeType shapeType, AbstractShapeGeometryFieldMapper shapeMapper) throws IOException, OpenSearchParseException throws an exception if the parsed geometry type does not match the expected shape type- Throws:
IOException
OpenSearchParseException
-