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 Object implements ShapeWriter
-
-
Constructor Summary
Constructors Constructor Description WKTWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringBuilderappend(StringBuilder buffer, Point p, NumberFormat nf)StringgetFormatName()StringtoString(Shape shape)Write a shape to Stringvoidwrite(Writer output, Shape shape)Write a shape to the output writer
-
-
-
Method Detail
-
getFormatName
public String getFormatName()
- Specified by:
getFormatNamein interfaceShapeIO- Returns:
- the format name
-
append
protected StringBuilder append(StringBuilder buffer, Point p, NumberFormat nf)
-
toString
public String toString(Shape shape)
Description copied from interface:ShapeWriterWrite a shape to String- Specified by:
toStringin interfaceShapeWriter
-
write
public void write(Writer output, Shape shape) throws IOException
Description copied from interface:ShapeWriterWrite a shape to the output writer- Specified by:
writein interfaceShapeWriter- Throws:
IOException
-
-