Bug report #21697
QGIS Server: GetFeatureInfo Requests impossible on layer groups or top layer
|Affected QGIS version:||3.7(master)||Regression?:||Yes|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29513|
In QGIS Server 2 the QGIS server exposed LAYER groups as well as the top level as 'queryable="1"'.
In QGIS Server 2 one could also submit a LAYER group or the TOP level as LAYER in the GetFeatureInfo request. I think this was fine according to the standards, as layer groups and top levels are also LAYERs.In QGIS Server 3 both don't work anymore:
- LAYER groups and top level LAYER elements do not include the queryable="1"
- even if the user/machine provides a top level or group LAYER in the GetFeatureInfo request, QGIS server does not respond to such queries
#1 Updated by Andreas Neumann over 1 year ago
Here is one QGIS server (3.6) WMS service:
https://services.geo.zg.ch/ows/Gewaessernetz?SERVICE=WMS&REQUEST=GetCapabilities to illustrate the issue.
#2 Updated by Alessandro Pasotti over 1 year ago
- Status changed from Open to In Progress
Digging into this now, the issues is triggered by a DD expression on the symbol size based on map scale, which is of course not available in getlegendgraphics calls because there is no map and no canvas.
I need to think about what would be the best approach in this case.