[GIS] How to select a WMS layer style in QGIS

qgisstylewms

WMS standard allows specifying a list of styles for each WMS layer. The users can then use the style name in the URL query parameter "STYLES". If the styles are not specified, "default" is assumed.

But, how do I select such a style in QGIS? I was able to add a WMS server, and add and display its layers. However, although I can see all the styles listed in the "Layer properties", I haven't find any option how to select one.

For example, if some WMS service has a layer named "Vegetation", and for this layer the service defines styles "Grayscale" and "Green", how do I select "Green" instead of the default one?

Best Answer

I can't find an example WMS that has a layer with two plus named styles, but just using the below example, I always thought that you would be able to select the layer style you wanted through the QGIS Add Layers dialogue window. So in this below example the style is called 'default' (id is 2), but in your example you would have grayscale (id would be 2) and green (id would be 3) and you would chose whichever style you wanted.

QGIS Add Layers dialogue window

Related Question