public class GMLGeometryWriter extends Object
| Constructor and Description |
|---|
GMLGeometryWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setGID(String gid)
Sets the
gid attribute to be output on the Geometry element. |
void |
setLinePrefix(String linePrefix) |
void |
setMaximumCoordinatesPerLine(int maxCoordinatesPerLine) |
void |
setSRSName(String srsName)
Sets the
srsName attribute to be output on the Geometry element. |
String |
write(com.vividsolutions.jts.geom.Geometry geom) |
void |
write(com.vividsolutions.jts.geom.Geometry g,
StringBuffer buf)
Generates the GML representation of a JTS Geometry.
|
void |
write(com.vividsolutions.jts.geom.Geometry geometry,
Writer writer) |
public void setLinePrefix(String linePrefix)
public void setSRSName(String srsName)
srsName attribute to be output on the Geometry element.
If null no attribute will be output.srsName - public void setGID(String gid)
gid attribute to be output on the Geometry element.
If null no attribute will be output.srsName - public void setMaximumCoordinatesPerLine(int maxCoordinatesPerLine)
public String write(com.vividsolutions.jts.geom.Geometry geom)
public void write(com.vividsolutions.jts.geom.Geometry geometry,
Writer writer)
throws IOException
IOExceptionpublic void write(com.vividsolutions.jts.geom.Geometry g,
StringBuffer buf)
g - Geometry to outputCopyright © 2015. All rights reserved.