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.
GSLayerGSStyle
Object of R6Class
for modelling a GeoServer layer
Object of R6Class
for modelling a GeoServer style
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 layer name.
setPath(path)
Sets the layer path.
setDefaultStyle(style)
Sets the default style.
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
setEnabled(enabled)
Sets if the layer is enabled (TRUE) or not (FALSE)
setQueryable(queryable)
Sets if the layer is queryable (TRUE) or not (FALSE)
setAdvertised(advertised)
Sets if the layer is advertised (TRUE) or not (FALSE)
new(xml)
This method is used to instantiate a GS Style
decode(xml)
This method is used to decode a GSStyle from XML
encode()
This method is used to encode a GSStyle to XML. Inherited from the
generic GSRESTResource
encoder
Geoserver REST API Resource
Geoserver REST API Style
# NOT RUN {
lyr <- GSLayer$new()
lyr <- GSStyle$new()
# }
Run the code above in your browser using DataLab