Bug report #21697
QGIS Server: GetFeatureInfo Requests impossible on layer groups or top layer
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
Assignee: | Alessandro Pasotti | ||
Category: | QGIS Server | ||
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 |
Description
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
Associated revisions
[server] Allow WMS GetFeatureInfo on root layer and groups
If the group (or the root) has any queryable child, it is flagged as queryable
Also fixes an issue with json enconding with rasters.
Fixes #21697
Funded by: Kanton Zug
History
#1 Updated by Andreas Neumann over 5 years 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 5 years 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.
#3 Updated by Alessandro Pasotti over 5 years ago
- Assignee set to Alessandro Pasotti
Sorry, I commented in the wrong ticket, please ignore my previous comment.
#4 Updated by Alessandro Pasotti over 5 years ago
- % Done changed from 0 to 100
- Status changed from In Progress to Closed
Applied in changeset qgis|9a689aff555a5b5ae0a28e4dee452ab1ce95de25.