Class WellKnownText

java.lang.Object
org.elasticsearch.geometry.utils.WellKnownText

public class WellKnownText
extends java.lang.Object
Utility class for converting to and from WKT
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String COMMA  
    static java.lang.String EMPTY  
    static WellKnownText INSTANCE  
    static java.lang.String LPAREN  
    static java.lang.String NAN  
    static java.lang.String RPAREN  
    static java.lang.String SPACE  
  • Constructor Summary

    Constructors
    Constructor Description
    WellKnownText​(boolean coerce, GeometryValidator validator)  
  • Method Summary

    Modifier and Type Method Description
    Geometry fromWKT​(java.lang.String wkt)  
    java.lang.String toWKT​(Geometry geometry)  
    void toWKT​(Geometry geometry, java.lang.StringBuilder sb)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • WellKnownText

      public WellKnownText​(boolean coerce, GeometryValidator validator)
  • Method Details

    • toWKT

      public java.lang.String toWKT​(Geometry geometry)
    • toWKT

      public void toWKT​(Geometry geometry, java.lang.StringBuilder sb)
    • fromWKT

      public Geometry fromWKT​(java.lang.String wkt) throws java.io.IOException, java.text.ParseException
      Throws:
      java.io.IOException
      java.text.ParseException