class GmlWriter extends java.lang.Object
Write a geoscript.layer.Layer to a GML InputStream, File, or String.
def layer = new Shapefile("states.shp")
GmlWriter writer = new GmlWriter()
String gml = writer.write(layer)
| Constructor and description |
|---|
GmlWriter
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
write(Layer layer, OutputStream out)Write the Layer to the OutputStream
|
|
void |
write(Layer layer, OutputStream out, double version, boolean format, boolean bounds, boolean xmldecl, java.lang.String nsprefix)Write the Layer to the OutputStream
|
|
void |
write(Layer layer, File file)Write the Layer to the File
|
|
void |
write(Layer layer, File file, double version, boolean format, boolean bounds, boolean xmldecl, java.lang.String nsprefix)Write the Layer to the File
|
|
java.lang.String |
write(Layer layer)Write the Layer to a String
|
|
java.lang.String |
write(Layer layer, double version, boolean format, boolean bounds, boolean xmldecl, java.lang.String nsprefix)Write the Layer to a String
|
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Write the Layer to the OutputStream
layer - The Layerout - The OutputStreamWrite the Layer to the OutputStream
layer - The Layerout - The OutputStreamversion - The version 2, 3, or 3.2format - Whether to pretty print or notbounds - Whether to include Feature Bounds or notxmldecl - Whether to include XML declaration or notnsprefix - The XML namespace prefixWrite the Layer to the File
layer - The Layerfile - The FileWrite the Layer to the File
layer - The Layerfile - The Fileversion - The version 2, 3, or 3.2format - Whether to pretty print or notbounds - Whether to include Feature Bounds or notxmldecl - Whether to include XML declaration or notnsprefix - The XML namespace prefixWrite the Layer to a String
layer - The LayerWrite the Layer to a String
layer - The Layerversion - The version 2, 3, or 3.2format - Whether to pretty print or notbounds - Whether to include Feature Bounds or notxmldecl - Whether to include XML declaration or notnsprefix - The XML namespace prefix