Package org.elasticsearch.geometry.utils
Class WellKnownText
- java.lang.Object
-
- org.elasticsearch.geometry.utils.WellKnownText
-
public class WellKnownText extends Object
Utility class for converting to and from WKT
-
-
Constructor Summary
Constructors Constructor Description WellKnownText(boolean coerce, GeometryValidator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryfromWKT(String wkt)StringtoWKT(Geometry geometry)voidtoWKT(Geometry geometry, StringBuilder sb)
-
-
-
Field Detail
-
INSTANCE
public static final WellKnownText INSTANCE
-
EMPTY
public static final String EMPTY
- See Also:
- Constant Field Values
-
SPACE
public static final String SPACE
- See Also:
- Constant Field Values
-
LPAREN
public static final String LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final String RPAREN
- See Also:
- Constant Field Values
-
COMMA
public static final String COMMA
- See Also:
- Constant Field Values
-
NAN
public static final String NAN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WellKnownText
public WellKnownText(boolean coerce, GeometryValidator validator)
-
-
Method Detail
-
toWKT
public void toWKT(Geometry geometry, StringBuilder sb)
-
fromWKT
public Geometry fromWKT(String wkt) throws IOException, ParseException
- Throws:
IOExceptionParseException
-
-