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 StringtoString(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:ShapeWriterWrite a shape to String- Specified by:
toStringin interfaceShapeWriter- Overrides:
toStringin classWKTWriter
-
-