This class models a GeoServer layer. This class is to be used for published resource (feature type or coverage).
This class models a GeoServer layer. This class is to be
used internally by geosapi for configuring layers or layer groups
within an object of class GSLayerGroup
This class models a GeoServer style.
Object of R6Class
for modelling a GeoServer layer
Object of R6Class
for modelling a GeoServer layer group publishable
Object of R6Class
for modelling a GeoServer style
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(rootName, xml)
This method is used to instantiate a GSPublishable
decode(xml)
This method is used to decode a GSPublishable
encode()
This method is used to encode a GSPublishable to XML. Inherited from the
generic GSRESTResource
encoder
setName(name)
Sets the publishable name.
setType(type)
Sets the publishable type.
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 Publishable
Geoserver REST API Style
# NOT RUN {
lyr <- GSLayer$new()
publishable <- GSPublishable$new(name = "name", type = "layer")
lyr <- GSStyle$new()
# }
Run the code above in your browser using DataLab