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, OutputStream out)Write the Layer as GML to an OutputStream 
  | 
                        
 | 
                            static void | 
                            toGMLFile(Layer layer, 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, OutputStream out)Write the Layer as Geobuf to an OutputStream 
  | 
                        
 | 
                            static [B | 
                            toGeobufBytes(Layer layer)Write the Layer as Geobuf to a byte array 
  | 
                        
 | 
                            static void | 
                            toGeobufFile(Layer layer, 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, OutputStream out)Write the Layer as GeoJSON to an OutputStream 
  | 
                        
 | 
                            static void | 
                            toJSON(Layer layer, Map options, OutputStream out)Write the Layer as GeoJSON to an OutputStream 
  | 
                        
 | 
                            static void | 
                            toJSONFile(Layer layer, Map options, 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, OutputStream out, Closure nameClosure, Closure descriptionClosure)Write the Layer as KML to an OutputStream.  | 
                        
 | 
                            static void | 
                            toKMLFile(Layer layer, File file, Closure nameClosure, Closure descriptionClosure)Write the Layer as KML to a File.  | 
                        
 | 
                            static java.lang.String | 
                            toKMLString(Layer layer, Closure nameClosure, Closure descriptionClosure)Write the Layer as KML 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 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 created