class LayerExtensionModule extends java.lang.Object
A Groovy Extension Module that adds methods to the Layer class.
Constructor and description |
---|
LayerExtensionModule() |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
toGML(Layer layer, java.io.OutputStream out) Write the Layer as GML to an OutputStream |
|
static void |
toGMLFile(Layer layer, java.io.File file) Write the Layer as GML to a File |
|
static java.lang.String |
toGMLString(Layer layer) Write the Layer as GML to a String |
|
static void |
toGeobuf(Layer layer, java.io.OutputStream out) Write the Layer as Geobuf to an OutputStream |
|
static byte[] |
toGeobufBytes(Layer layer) Write the Layer as Geobuf to a byte array |
|
static void |
toGeobufFile(Layer layer, java.io.File file) Write the Layer as Geobuf to a File |
|
static java.lang.String |
toGeobufString(Layer layer) Write the Layer as Geobuf to a String |
|
static void |
toJSON(Layer layer, java.io.OutputStream out) Write the Layer as GeoJSON to an OutputStream |
|
static void |
toJSON(Layer layer, Map options, java.io.OutputStream out) Write the Layer as GeoJSON to an OutputStream |
|
static void |
toJSONFile(Layer layer, Map options, java.io.File file) Write the Layer as GeoJSON to a File |
|
static java.lang.String |
toJSONString(Layer layer, Map options) Write the Layer as GeoJSON to a String |
|
static void |
toKML(Layer layer, java.io.OutputStream out, groovy.lang.Closure nameClosure, groovy.lang.Closure descriptionClosure) Write the Layer as KML to an OutputStream. |
|
static void |
toKMLFile(Layer layer, java.io.File file, groovy.lang.Closure nameClosure, groovy.lang.Closure descriptionClosure) Write the Layer as KML to a File. |
|
static java.lang.String |
toKMLString(Layer layer, groovy.lang.Closure nameClosure, groovy.lang.Closure descriptionClosure) Write the Layer as KML to a String. |
|
static void |
toYaml(Layer layer, java.io.OutputStream out) Write the Layer as YAML to an OutputStream |
|
static void |
toYamlFile(Layer layer, java.io.File file) Write the Layer as YAML to a File |
|
static java.lang.String |
toYamlString(Layer layer) Write the Layer as a YAML 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 as GML to an OutputStream
layer
- The Layerout
- The OutputStream (defaults to System.out)Write the Layer as GML to a File
layer
- The Layerfile
- The FileWrite the Layer as GML to a String
layer
- The Layerout
- A GML StringWrite the Layer as Geobuf to an OutputStream
layer
- The Layerout
- The OutputStream (defaults to System.out)Write the Layer as Geobuf to a byte array
layer
- The Layerout
- A Geobuf byte arrayWrite the Layer as Geobuf to a File
layer
- The Layerfile
- The FileWrite the Layer as Geobuf to a String
layer
- The Layerout
- A Geobuf Hex StringWrite the Layer as GeoJSON to an OutputStream
layer
- The Layerout
- The OutputStream (defaults to System.out)Write the Layer as GeoJSON to an OutputStream
layer
- The Layeroptions
- Optional named parameters:
out
- The OutputStream (defaults to System.out)Write the Layer as GeoJSON to a File
layer
- The Layeroptions
- Optional named parameters:
file
- The FileWrite the Layer as GeoJSON to a String
layer
- The Layeroptions
- Optional named parameters:
out
- A GeoJSON StringWrite the Layer as KML to an OutputStream.
layer
- The Layerout
- The OutputStream (defaults to System.out)nameClosure
- A Closure that takes a Feature and returns a value
used as the Placemark's name. Default to the Feature's IDdescriptionClosure
- A Closure that takes a Feature and returns a value
used as the Placemark's description. Defaults to null which means no description
is createdWrite the Layer as KML to a File.
layer
- The Layerfile
- The File we are writingnameClosure
- A Closure that takes a Feature and returns a value
used as the Placemark's name. Default to the Feature's IDdescriptionClosure
- A Closure that takes a Feature and returns a value
used as the Placemark's description. Defaults to null which means no description
is createdWrite the Layer as KML to a String.
layer
- The LayernameClosure
- A Closure that takes a Feature and returns a value
used as the Placemark's name. Default to the Feature's IDdescriptionClosure
- A Closure that takes a Feature and returns a value
used as the Placemark's description. Defaults to null which means no description
is createdWrite the Layer as YAML to an OutputStream
layer
- The Layerout
- The OutputStream (defaults to System.out)Write the Layer as YAML to a File
layer
- The Layerfile
- The FileWrite the Layer as a YAML String
layer
- The Layer