Package org.locationtech.jtstest.util.io
Class SVGWriter
java.lang.Object
org.locationtech.jtstest.util.io.SVGWriter
Writes the SVG representation of a
Geometry
.- Version:
- 1.7
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
stringOfChar
(char ch, int count) Returns aString
of repeated characters.Converts aGeometry
to its Well-known Text representation.void
Converts aGeometry
to its Well-known Text representation.writeFormatted
(Geometry geometry) Same aswrite
, but with newlines and spaces to make the well-known text more readable.void
writeFormatted
(Geometry geometry, Writer writer) Same aswrite
, but with newlines and spaces to make the well-known text more readable.
-
Constructor Details
-
SVGWriter
public SVGWriter()Creates a new SVGWriter with default settings
-
-
Method Details
-
stringOfChar
Returns aString
of repeated characters.- Parameters:
ch
- the character to repeatcount
- the number of times to repeat the character- Returns:
- a
String
of characters
-
write
Converts aGeometry
to its Well-known Text representation.- Parameters:
geometry
- aGeometry
to process- Returns:
- a
string (see the OpenGIS Simple Features Specification)
-
write
Converts aGeometry
to its Well-known Text representation.- Parameters:
geometry
- aGeometry
to process- Throws:
IOException
-
writeFormatted
Same aswrite
, but with newlines and spaces to make the well-known text more readable.- Parameters:
geometry
- aGeometry
to process- Returns:
- a
string (see the OpenGIS Simple Features Specification), with newlines and spaces
-
writeFormatted
Same aswrite
, but with newlines and spaces to make the well-known text more readable.- Parameters:
geometry
- aGeometry
to process- Throws:
IOException
-