|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.io.GMLGeometryWriter
public class 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 | |
|---|---|
GMLGeometryWriter()
|
|
| Method Summary | |
|---|---|
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.lang.StringBuffer buf)
Generates the GML representation of a JTS Geometry. |
void |
write(com.vividsolutions.jts.geom.Geometry geometry,
java.io.Writer writer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GMLGeometryWriter()
| Method Detail |
|---|
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 geometry,
java.io.Writer writer)
throws java.io.IOException
java.io.IOException
public void write(com.vividsolutions.jts.geom.Geometry g,
java.lang.StringBuffer buf)
g - Geometry to output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||