class GeobufWriter
Write a Layer to a Geobuf encoded protocol buffer.
Type | Name and description |
---|---|
GeobufFeatureCollection |
geobufFeatureCollection The Geobuf FeatureCollection decoder |
Constructor and description |
---|
GeobufWriter
(Map options = [:]) Create a new GeobufWriter |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
write(Layer layer, java.io.OutputStream out) Write the Layer to the OutputStream |
|
void |
write(Layer layer, java.io.File file) Write the Layer to the File |
|
java.lang.String |
write(Layer layer) Write the Layer to a String |
|
byte[] |
writeBytes(Layer layer) Write the Layer to an array of bytes |
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() |
The Geobuf FeatureCollection decoder
Create a new GeobufWriter
options
- The optional named parameters
Write the Layer to the OutputStream
layer
- The Layerout
- The OutputStreamWrite the Layer to the File
layer
- The Layerfile
- The FileWrite the Layer to a String
layer
- The LayerWrite the Layer to an array of bytes
layer
- The LayerGroovy Documentation