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.StringBuilder
append(java.lang.StringBuilder buffer, Point p, java.text.NumberFormat nf)
java.lang.String
getFormatName()
protected java.text.NumberFormat
getNumberFormat()
java.lang.String
toString(Shape shape)
Write a shape to Stringvoid
write(java.io.Writer output, Shape shape)
Write a shape to the output writer
-
-
-
Method Detail
-
getFormatName
public java.lang.String getFormatName()
- Specified by:
getFormatName
in 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:ShapeWriter
Write a shape to String- Specified by:
toString
in interfaceShapeWriter
-
write
public void write(java.io.Writer output, Shape shape) throws java.io.IOException
Description copied from interface:ShapeWriter
Write a shape to the output writer- Specified by:
write
in interfaceShapeWriter
- Throws:
java.io.IOException
-
-