Retrieve or set a layer's feature or raster renderer in XML format.

mapLayer.renderer(layer, ...)

mapLayer.setRenderer(layer, value, ...)

mapLayer.renderer(layer, ...) <- value

Arguments

layer

layer (or ID of the layer) whose style to access or set.

...

low-level parameters (such as host and auth) to be passed on to qgisremote()

value

XML specification of the renderer to set for the given layer (can be an xml_node object or plain character string)

Value

An object of class xml_document (and xml_node) representing the current renderer of the given layer. In order to retrieve the renderer as a plaintext string, simply pass the optional as = 'text' argument to suppress automatic parsing.

See also

qgisxml()