qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.59k stars 3.01k forks source link

GetLegendGraphic with mapserver's layers group #31139

Open zubatt2000 opened 5 years ago

zubatt2000 commented 5 years ago

Hello,

I manage my layers in mapfile with GROUP parameter.

When I load my WMS service with QGIS 3.8.1 in the data source manager, in layers tab, layers are correctly present in my groups.

And when I select and add one of my layer of the group, the selected layer is correctly displayed on map panel, but the getlegendgraphic request does the request on the group and not only the selected layer.

For one layer selected, there is a legend graphic with all legends of the other layers of the group.

Any ideas?

gioman commented 5 years ago

Any URL we can test?

zubatt2000 commented 5 years ago

It's not online but there're printscreens:

I select one layer in my group: pbgroup1

But the request getLegendGraphic put in layer parameter the name of my group instead of the name of the layer:
pbgroup2

gioman commented 5 years ago

It's not online but there're printscreens:

I can't confirm with wms server I have access to.

hugbe8 commented 4 years ago

QGIS 3.4.13

I have the same issue in this situation in the wms:

QGIS seems to use all the legends of all the layers of the parent group for the default style

You can replicate this issue with this url: https://geoegl.msp.gouv.qc.ca/ws/mffpecofor.fcgi? -> group: classi_eco_terri -> layer: sh_zone_veg -> legend: default

image

pelord commented 4 years ago

I encounter the same problem

gioman commented 4 years ago

I encounter the same problem

@pelord url?

pelord commented 4 years ago

With the same url as provided ny @hugbe8

Pedro-Murteira commented 2 years ago

Still an issue on QGIS 3.22.3.