| GSLayerGroup {geosapi} | R Documentation |
A GeoServer layergroup resource
Description
This class models a GeoServer layer group. This class is to be used for clustering layers into a group.
Format
R6Class object.
Details
Geoserver REST API LayerGroup
Value
Object of R6Class for modelling a GeoServer layergroup
Super class
geosapi::GSRESTResource -> GSLayerGroup
Public fields
fullfull
namename
modemode
titletitle
abstractTxtabstract
workspaceworkspace
publishablespublishables
stylesstyles
metadataLinksmetadata links
boundsbounds
Methods
Public methods
Inherited methods
Method new()
Initializes an object of class GSLayerGroup
Usage
GSLayerGroup$new(xml = NULL)
Arguments
xmlobject of class xml_node-class
Method decode()
Decodes from XML
Usage
GSLayerGroup$decode(xml)
Arguments
xmlobject of class xml_node-class
Method setName()
Set name
Usage
GSLayerGroup$setName(name)
Arguments
namename
Method setMode()
Set mode
Usage
GSLayerGroup$setMode(mode)
Arguments
modea mode value among "SINGLE", "NAMED", "CONTAINER", "EO"
Method setTitle()
Set title
Usage
GSLayerGroup$setTitle(title)
Arguments
titletitle
Method setAbstract()
Set abstract
Usage
GSLayerGroup$setAbstract(abstract)
Arguments
abstractabstract
Method setWorkspace()
Set workspace
Usage
GSLayerGroup$setWorkspace(workspace)
Arguments
workspaceworkspace name, object of class GSWorkspace or
character
Method addLayer()
Adds layer
Usage
GSLayerGroup$addLayer(layer, style)
Arguments
layerlayer name
stylestyle name
Method addLayerGroup()
Adds layer group
Usage
GSLayerGroup$addLayerGroup(layerGroup)
Arguments
layerGrouplayer group
Method addPublishable()
Adds publishable
Usage
GSLayerGroup$addPublishable(publishable)
Arguments
publishablepublishable
Returns
TRUE if added, FALSE otherwise
Method setStyles()
Set styles
Usage
GSLayerGroup$setStyles(styles)
Arguments
stylesstyles
Method addStyle()
Adds a style
Usage
GSLayerGroup$addStyle(style)
Arguments
stylestyle
Returns
TRUE if added, FALSE otherwise
Method setMetadataLinks()
Set metadata links
Usage
GSLayerGroup$setMetadataLinks(metadataLinks)
Arguments
metadataLinksmetadata links
Method addMetadataLink()
Adds metadata link
Usage
GSLayerGroup$addMetadataLink(metadataLink)
Arguments
metadataLinkobject of class GSMetadataLink
Returns
TRUE if added, FALSE otherwise
Method deleteMetadataLink()
Deletes metadata link
Usage
GSLayerGroup$deleteMetadataLink(metadataLink)
Arguments
metadataLinkobject of class GSMetadataLink
Returns
TRUE if deleted, FALSE otherwise
Method setBounds()
Set bounds
Usage
GSLayerGroup$setBounds(minx, miny, maxx, maxy, bbox = NULL, crs)
Arguments
minxminx
minyminy
maxxmaxx
maxymaxy
bboxbbox
crscrs
Method clone()
The objects of this class are cloneable with this method.
Usage
GSLayerGroup$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
lyr <- GSLayerGroup$new()