GSLayer | R Documentation |
This class models a GeoServer layer. This class is to be used for published resource (feature type or coverage).
This class models a GeoServer style.
R6Class
object.
R6Class
object.
Geoserver REST API Resource
Geoserver REST API Style
Object of R6Class
for modelling a GeoServer layer
Object of R6Class
for modelling a GeoServer style
geosapi::GSRESTResource
-> GSLayer
full
full
name
name
path
path
defaultStyle
default style
styles
styles
enabled
enabled
queryable
queryable
advertised
advertised
new()
Initializes an object of class GSLayer
GSLayer$new(xml = NULL)
xml
object of class xml_node-class
decode()
Decodes from XML
GSLayer$decode(xml)
xml
object of class xml_node-class
setName()
Set name
GSLayer$setName(name)
name
name
setPath()
Set path
GSLayer$setPath(path)
path
path
setEnabled()
Set enabled
GSLayer$setEnabled(enabled)
enabled
enabled
setQueryable()
Set queryable
GSLayer$setQueryable(queryable)
queryable
queryable
setAdvertised()
Set advertised
GSLayer$setAdvertised(advertised)
advertised
advertised
setDefaultStyle()
Set default style
GSLayer$setDefaultStyle(style)
style
object o class GSStyle or character
setStyles()
Set styles
GSLayer$setStyles(styles)
styles
styles
addStyle()
Adds style
GSLayer$addStyle(style)
style
style, object o class GSStyle or character
TRUE
if added, FALSE
otherwise
delStyle()
Deletes style
GSLayer$delStyle(style)
style
style, object o class GSStyle or character
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSLayer$clone(deep = FALSE)
deep
Whether to make a deep clone.
geosapi::GSRESTResource
-> GSStyle
full
full
name
name
filename
filename
new()
Initializes a GSStyle
GSStyle$new(xml = NULL, name = NULL, filename = NULL)
xml
an object of class xml_node-class
name
name
filename
filename
decode()
Decodes from XML
GSStyle$decode(xml)
xml
an object of class xml_node-class
setName()
set name
GSStyle$setName(name)
name
name
setFilename()
Set filename
GSStyle$setFilename(filename)
filename
filename
clone()
The objects of this class are cloneable with this method.
GSStyle$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
lyr <- GSLayer$new()
lyr <- GSStyle$new()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.