Class 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 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()  
    • Method Summary

      Modifier and Type Method Description
      static Geometry fromWKT​(java.lang.String wkt)  
      static java.lang.String getWKTName​(Geometry geometry)  
      static java.lang.String toWKT​(Geometry geometry)  
      static 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
    • Constructor Detail

      • WellKnownText

        public WellKnownText()
    • Method Detail

      • toWKT

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

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

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

        public static java.lang.String getWKTName​(Geometry geometry)