Package org.locationtech.jtstest.util.io
Class SVGWriter
- java.lang.Object
-
- org.locationtech.jtstest.util.io.SVGWriter
-
-
Constructor Summary
Constructors Constructor Description SVGWriter()Creates a new SVGWriter with default settings
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringstringOfChar(char ch, int count)Returns aStringof repeated characters.Stringwrite(Geometry geometry)Converts aGeometryto its Well-known Text representation.voidwrite(Geometry geometry, Writer writer)Converts aGeometryto its Well-known Text representation.StringwriteFormatted(Geometry geometry)Same aswrite, but with newlines and spaces to make the well-known text more readable.voidwriteFormatted(Geometry geometry, Writer writer)Same aswrite, but with newlines and spaces to make the well-known text more readable.
-
-
-
Method Detail
-
stringOfChar
public static String stringOfChar(char ch, int count)
Returns aStringof repeated characters.- Parameters:
ch- the character to repeatcount- the number of times to repeat the character- Returns:
- a
Stringof characters
-
write
public String write(Geometry geometry)
Converts aGeometryto its Well-known Text representation.- Parameters:
geometry- aGeometryto process- Returns:
- a
string (see the OpenGIS Simple Features Specification)
-
write
public void write(Geometry geometry, Writer writer) throws IOException
Converts aGeometryto its Well-known Text representation.- Parameters:
geometry- aGeometryto process- Throws:
IOException
-
writeFormatted
public String writeFormatted(Geometry geometry)
Same aswrite, but with newlines and spaces to make the well-known text more readable.- Parameters:
geometry- aGeometryto process- Returns:
- a
string (see the OpenGIS Simple Features Specification), with newlines and spaces
-
writeFormatted
public void writeFormatted(Geometry geometry, Writer writer) throws IOException
Same aswrite, but with newlines and spaces to make the well-known text more readable.- Parameters:
geometry- aGeometryto process- Throws:
IOException
-
-