Package org.locationtech.spatial4j.io
Class WKTWriter
java.lang.Object
org.locationtech.spatial4j.io.WKTWriter
- All Implemented Interfaces:
ShapeIO
,ShapeWriter
- Direct Known Subclasses:
JtsWKTWriter
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringBuilder
append
(StringBuilder buffer, Point p, NumberFormat nf) protected NumberFormat
Write a shape to Stringvoid
Write a shape to the output writer
-
Constructor Details
-
WKTWriter
public WKTWriter()
-
-
Method Details
-
getFormatName
- Specified by:
getFormatName
in interfaceShapeIO
- Returns:
- the format name
-
append
-
getNumberFormat
-
toString
Description copied from interface:ShapeWriter
Write a shape to String- Specified by:
toString
in interfaceShapeWriter
-
write
Description copied from interface:ShapeWriter
Write a shape to the output writer- Specified by:
write
in interfaceShapeWriter
- Throws:
IOException
-