Class JtsWKTWriter
- java.lang.Object
-
- org.locationtech.spatial4j.io.WKTWriter
-
- org.locationtech.spatial4j.io.jts.JtsWKTWriter
-
- All Implemented Interfaces:
ShapeIO
,ShapeWriter
public class JtsWKTWriter extends WKTWriter
Writes the WKT using JTS directly
-
-
Constructor Summary
Constructors Constructor Description JtsWKTWriter(JtsSpatialContext ctx, JtsSpatialContextFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString(Shape shape)
Write a shape to String-
Methods inherited from class org.locationtech.spatial4j.io.WKTWriter
append, getFormatName, write
-
-
-
-
Constructor Detail
-
JtsWKTWriter
public JtsWKTWriter(JtsSpatialContext ctx, JtsSpatialContextFactory factory)
-
-
Method Detail
-
toString
public String toString(Shape shape)
Description copied from interface:ShapeWriter
Write a shape to String- Specified by:
toString
in interfaceShapeWriter
- Overrides:
toString
in classWKTWriter
-
-