Class DefaultWktWriter

  • All Implemented Interfaces:
    WktWriter

    final class DefaultWktWriter
    extends java.lang.Object
    implements WktWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.locationtech.spatial4j.io.ShapeWriter wktWriter  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultWktWriter​(org.locationtech.spatial4j.context.SpatialContext context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toWkt​(org.locationtech.spatial4j.shape.Shape shape)  
      • Methods inherited from class java.lang.Object

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

      • wktWriter

        private final org.locationtech.spatial4j.io.ShapeWriter wktWriter
    • Constructor Detail

      • DefaultWktWriter

        public DefaultWktWriter​(org.locationtech.spatial4j.context.SpatialContext context)
    • Method Detail

      • toWkt

        public java.lang.String toWkt​(org.locationtech.spatial4j.shape.Shape shape)
                               throws java.io.IOException
        Specified by:
        toWkt in interface WktWriter
        Throws:
        java.io.IOException