This class models a GeoServer layer group. This class is to be used for clustering layers into a group.
Object of R6Class for modelling a GeoServer layergroup
R6Class object.
new(rootName, xml)This method is used to instantiate a GSLayer
decode(xml)This method is used to decode a GSLayer from XML
encode()This method is used to encode a GSLayer to XML. Inherited from the
generic GSRESTResource encoder
setName(name)Sets the name.
setTitle(title)Sets the title.
setAbstract(abstract)Sets the abstract.
setMode(mode)Sets the mode.
setWorkspace(ws)Sets the worksapce
addLayer(layer)Adds a layer
delLayer(layer)Deletes a layer
addLayerGroup(layerGroup)Adds a layer group
delLayerGroup(layerGroup)Deletes a layer group
setStyles(styles)Sets a list of optional styles
addStyle(style)Sets an available style. Returns TRUE if set, FALSE otherwise
delStyle(name)Deletes an available. Returns TRUE if deleted, FALSE otherwise
setMetadataLinks(metadataLinks)Sets a list of GSMetadataLinks
addMetadataLink(metadataLink)Adds a metadataLink
delMetadataLink(metadataLink)Deletes a metadataLink
setBounds(minx, miny, maxx, maxy, bbox, crs)Sets the layer group bounds. Either from coordinates or from
a bbox object (matrix).
Geoserver REST API LayerGroup
# NOT RUN {
lyr <- GSLayerGroup$new()
# }
Run the code above in your browser using DataLab