public class GMLGeometryWriter
extends java.lang.Object
| Constructor and Description |
|---|
GMLGeometryWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setGID(java.lang.String gid)
Sets the
gid attribute to be output on the Geometry element. |
void |
setLinePrefix(java.lang.String linePrefix) |
void |
setMaximumCoordinatesPerLine(int maxCoordinatesPerLine) |
void |
setSRSName(java.lang.String srsName)
Sets the
srsName attribute to be output on the Geometry element. |
java.lang.String |
write(com.vividsolutions.jts.geom.Geometry geom) |
void |
write(com.vividsolutions.jts.geom.Geometry g,
java.io.Writer writer)
Generates the GML representation of a JTS Geometry.
|
public void setLinePrefix(java.lang.String linePrefix)
public void setSRSName(java.lang.String srsName)
srsName attribute to be output on the Geometry element.
If null no attribute will be output.srsName - public void setGID(java.lang.String gid)
gid attribute to be output on the Geometry element.
If null no attribute will be output.gid - the geographic identifierpublic void setMaximumCoordinatesPerLine(int maxCoordinatesPerLine)
public java.lang.String write(com.vividsolutions.jts.geom.Geometry geom)
public void write(com.vividsolutions.jts.geom.Geometry g,
java.io.Writer writer)
throws java.io.IOException
g - Geometry to outputjava.io.IOException