class GeoJSONWriter extends java.lang.Object implements Writer
Write a Layer to a GeoJSON InputStream, File, or String.
def layer = new Shapefile("states.shp") GeoJSONWriter writer = new GeoJSONWriter() String json = writer.write(layer)
Constructor and description |
---|
GeoJSONWriter
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
write(Map options, Layer layer, java.io.OutputStream out) Write the Layer to the OutputStream |
|
void |
write(Map options, Layer layer, java.io.File file) Write the Layer to the File |
|
java.lang.String |
write(Map options, Layer layer) Write the Layer to a String |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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
options
- Optional named parameters:
layer
- The Layerout
- The OutputStreamWrite the Layer to the File
options
- Optional named parameters:
layer
- The Layerfile
- The FileWrite the Layer to a String
options
- Optional named parameters:
layer
- The Layer