Class GMLGeometryWriter
java.lang.Object
com.vividsolutions.jump.io.GMLGeometryWriter
Writes or creates a formatted string containing the GML
representation of a JTS Geometry.
Supports a user-defined line prefix and a user-defined maximum number of coordinates per line.
Indents components of Geometries to provide a nicely-formatted representation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSRSName(String srsName) Sets thesrsNameattribute to be output on the Geometry element.write(org.locationtech.jts.geom.Geometry geom) voidGenerates the GML representation of a JTS Geometry.
-
Constructor Details
-
GMLGeometryWriter
public GMLGeometryWriter()
-
-
Method Details
-
setSRSName
Sets thesrsNameattribute to be output on the Geometry element. Ifnullno attribute will be output.- Parameters:
srsName- name of the SpatialReferenceSystem
-
write
-
write
Generates the GML representation of a JTS Geometry.- Parameters:
g- Geometry to output- Throws:
IOException
-