GSLayerManager {geosapi} | R Documentation |
Geoserver REST API Layer Manager
Description
Geoserver REST API Layer Manager
Geoserver REST API Layer Manager
Format
R6Class
object.
Value
Object of R6Class
with methods for managing GeoServer
Layers as results of published feature types or coverages
Super class
geosapi::GSManager
-> GSLayerManager
Methods
Public methods
Inherited methods
geosapi::GSManager$ERROR()
geosapi::GSManager$INFO()
geosapi::GSManager$WARN()
geosapi::GSManager$connect()
geosapi::GSManager$getClassName()
geosapi::GSManager$getCoverageStoreManager()
geosapi::GSManager$getDataStoreManager()
geosapi::GSManager$getNamespaceManager()
geosapi::GSManager$getServiceManager()
geosapi::GSManager$getStyleManager()
geosapi::GSManager$getSystemStatus()
geosapi::GSManager$getUrl()
geosapi::GSManager$getWorkspaceManager()
geosapi::GSManager$initialize()
geosapi::GSManager$logger()
geosapi::GSManager$monitor()
geosapi::GSManager$reload()
Method getLayers()
Get the list of layers.
Usage
GSLayerManager$getLayers()
Returns
an object of class list
giving items of class GSLayer
Method getLayerNames()
Get the list of layer names.
Usage
GSLayerManager$getLayerNames()
Returns
a vector of class character
Method getLayer()
Get layer by name
Usage
GSLayerManager$getLayer(lyr)
Arguments
lyr
layer name
Returns
an object of class GSLayer
Method createLayer()
Creates a new layer given an object of class GSLayer
Usage
GSLayerManager$createLayer(layer)
Arguments
layer
object of class GSLayer
Returns
TRUE
if created, FALSE
otherwise
Method updateLayer()
Updates a layer given an object of class GSLayer
Usage
GSLayerManager$updateLayer(layer)
Arguments
layer
object of class GSLayer
Returns
TRUE
if updated, FALSE
otherwise
Method deleteLayer()
Deletes layer given an object of class GSLayer
Usage
GSLayerManager$deleteLayer(lyr)
Arguments
lyr
layer name
Returns
TRUE
if deleted, FALSE
otherwise
Method getLayerGroups()
Get layer groups
Usage
GSLayerManager$getLayerGroups(ws = NULL)
Arguments
ws
workspace name. Optional
Returns
a list of objects of class GSLayerGroup
Method getLayerGroupNames()
Get layer group names
Usage
GSLayerManager$getLayerGroupNames(ws = NULL)
Arguments
ws
workspace name
Returns
a list of layer group names, as vector of class character
Method getLayerGroup()
Get layer group
Usage
GSLayerManager$getLayerGroup(lyr, ws = NULL)
Arguments
lyr
lyr
ws
workspace name
Returns
an object of class GSLayerGroup
Method createLayerGroup()
Creates a layer group
Usage
GSLayerManager$createLayerGroup(layerGroup, ws = NULL)
Arguments
layerGroup
object of class GSLayerGroup
ws
workspace name. Optional
Returns
TRUE
if created, FALSE
otherwise
Method updateLayerGroup()
Updates a layer group
Usage
GSLayerManager$updateLayerGroup(layerGroup, ws = NULL)
Arguments
layerGroup
object of class GSLayerGroup
ws
workspace name. Optional
Returns
TRUE
if updated, FALSE
otherwise
Method deleteLayerGroup()
Deletes a layer group
Usage
GSLayerManager$deleteLayerGroup(lyr, ws = NULL)
Arguments
lyr
layer group name
ws
workspace name. Optional
Returns
TRUE
if deleted, FALSE
otherwise
Method clone()
The objects of this class are cloneable with this method.
Usage
GSLayerManager$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
## Not run:
GSLayerManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
## End(Not run)