Package org.locationtech.spatial4j.io
Class WKTWriter
- java.lang.Object
-
- org.locationtech.spatial4j.io.WKTWriter
-
- All Implemented Interfaces:
ShapeIO,ShapeWriter
- Direct Known Subclasses:
JtsWKTWriter
public class WKTWriter extends java.lang.Object implements ShapeWriter
-
-
Constructor Summary
Constructors Constructor Description WKTWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringBuilderappend(java.lang.StringBuilder buffer, Point p, java.text.NumberFormat nf)java.lang.StringgetFormatName()protected java.text.NumberFormatgetNumberFormat()java.lang.StringtoString(Shape shape)Write a shape to Stringvoidwrite(java.io.Writer output, Shape shape)Write a shape to the output writer
-
-
-
Method Detail
-
getFormatName
public java.lang.String getFormatName()
- Specified by:
getFormatNamein interfaceShapeIO- Returns:
- the format name
-
append
protected java.lang.StringBuilder append(java.lang.StringBuilder buffer, Point p, java.text.NumberFormat nf)
-
getNumberFormat
protected java.text.NumberFormat getNumberFormat()
-
toString
public java.lang.String toString(Shape shape)
Description copied from interface:ShapeWriterWrite a shape to String- Specified by:
toStringin interfaceShapeWriter
-
write
public void write(java.io.Writer output, Shape shape) throws java.io.IOExceptionDescription copied from interface:ShapeWriterWrite a shape to the output writer- Specified by:
writein interfaceShapeWriter- Throws:
java.io.IOException
-
-