Bug report #17975

QGIS server 2.99 reverses the layer order for layer groups

Added by Rémi Bonnefoi almost 7 years ago. Updated over 6 years ago.

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

Description

Hi all,

I recently switched to version 2.99 both for desktop (to edit my .qgs file) and server.

I use the server to display a layers group containing several layers, correctly ordered in the .qgs file. But when displayed through WMS, the rendering order is not correct, it even seems to be exactly reversed. I mean the bottom layer of the group is displayed on top, and the top one is displayed on the lowest one.

With the former version, I hadn't such a problem.

Anyway, many thanks to all QGIS contributors. It's a great project.

Rémi.

version_2_99.qgs.zip (2.3 MB) Rémi Bonnefoi, 2018-02-01 05:01 PM

Associated revisions

Revision de33351f
Added by Alessandro Pasotti almost 7 years ago

[bugfix][server] WMS respect order of grouped layers

Fixes #17975 - QGIS server 2.99 reverses the layer order for layer groups

History

#1 Updated by Giovanni Manghi almost 7 years ago

  • Status changed from Open to Feedback
  • Regression? changed from Yes to No

What version you were using before?

Display layers how (a GetMap? a GetPrint?) and where?

#2 Updated by Rémi Bonnefoi almost 7 years ago

Hi Giovanni,

Thank you for your answer. I don't really understand why you don't consider it is a regression, as everything worked with version 2.18.14 or 2.18.16.

The problem occurs either using a GetMap through an openlayers application in Firefox, or directly using QGIS desktop connecting through WMS to my QGIS server.

#3 Updated by Giovanni Manghi almost 7 years ago

  • Priority changed from Normal to High
  • Regression? changed from No to Yes

Rémi Bonnefoi wrote:

Hi Giovanni,

Thank you for your answer. I don't really understand why you don't consider it is a regression, as everything worked with version 2.18.14 or 2.18.16.

The problem occurs either using a GetMap through an openlayers application in Firefox, or directly using QGIS desktop connecting through WMS to my QGIS server.

can you post an example getmap request that you use (that shows the layers in the right order on 2.18 and reversed in master)? thanks.

#4 Updated by Alessandro Pasotti almost 7 years ago

A simple test project would be really helpful, thanks.

#5 Updated by Rémi Bonnefoi almost 7 years ago

Dear Giovanni, dear Alessandro,

I am sorry for this late answer.

I attach an extract of my qgs file (version 2.99). It think it will let you test the rendering using both qgis desktop and server and check the layer order.

FYI, in my web application, I display the group "projets_urbains" as a single layer using WMS protocol thanks to the openlayers library.

Thanks.

Remi.

#6 Updated by Alessandro Pasotti almost 7 years ago

  • Assignee set to Alessandro Pasotti

#7 Updated by Alessandro Pasotti almost 7 years ago

  • Status changed from Feedback to In Progress
  • Pull Request or Patch supplied changed from No to Yes

#8 Updated by Anonymous over 6 years ago

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

#9 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF