Bug report #21917

QGIS server ignores custom rendering order when loading parent group

Added by Andreas Neumann almost 5 years ago. Updated almost 5 years ago.

Status:Closed
Priority:High
Assignee:Alessandro Pasotti
Category:QGIS Server
Affected QGIS version:3.7(master) Regression?:Yes
Operating System:Linux Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:29732

Description

When a project has custom layer rendering order (checkbox "control rendering order" enabled in the "layer order" panel), and the user loads the root layer as a single WMS layer in a WMS client (e.g. QGIS), the custom layer rendering order is not correctly taken into account.

Here is an example service, served with QGIS server 3.6.x (recent build) and attached are three screenshots: one with the connection parameters, the other two with the rendering as it should appear (original project files) and the other with the invalid rendering order when loading the service with the root layer. Note in the screenshot that point symbols (circles) should always be rendered on top, and also other layers are mixed up.

https://services.geo.zg.ch/ows/rp

The data source is Postgis. A Postgis dump-file and the project file will be provided to the person working on fixing the issue.

qgis-richtplan-connnection-parameter.png - The WMS connection parameters (82.8 KB) Andreas Neumann, 2019-04-24 11:47 AM

qgis-correct-rendering_project_rp.png - Correct layer rendering order in the original desktop project (425 KB) Andreas Neumann, 2019-04-24 11:47 AM

qgis-incorrect-rendering_when_loading_root-layer.png - Incorrect layer rendering order when loading the root layer in QGIS as a WMS client (layer name = zg.richtplan) (376 KB) Andreas Neumann, 2019-04-24 11:48 AM

Associated revisions

Revision 956ed06f
Added by Alessandro Pasotti almost 5 years ago

[server] Respect custom layer order for groups in GetMap

Fixes #21917

Revision 9ddbae6c
Added by Alessandro Pasotti almost 5 years ago

Respect custom layer order for groups in GetMap

Backport of bugfix from master PR 9878

Fixes #21917

Revision aa714d3d
Added by Alessandro Pasotti almost 5 years ago

Respect custom layer order for groups in GetMap

Backport of bugfix from master PR 9878

Fixes #21917

(cherry-picking commit 9ddbae6c68 from 3.6)

History

#1 Updated by Alessandro Pasotti almost 5 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti almost 5 years ago

  • Resolution set to fixed/implemented
  • Pull Request or Patch supplied changed from No to Yes
  • Status changed from Open to In Progress

#3 Updated by Alessandro Pasotti almost 5 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF