Bug report #10347

No layers in QGIS server GetCapabilities

Added by Radim Blazek over 7 years ago. Updated over 7 years ago.

Assignee:Martin Dobias
Category:QGIS Server
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18768


There are no layers in QGIS GetCapabilities response with projects files saved by latest master. It works with old project files.

It was probably introduced by new legend, it works with 7f218c7 and it does not with 439065d.

Associated revisions

Revision 2df8f8c1
Added by Martin Dobias over 7 years ago

[layertree] Fix #10347 - save also old <legend> tag

QGIS server does not use QgsProject for loading of QGIS project.
In order to allow reading of new projects, let's also write the original <legend> tag to the project.
Ideally the server should be ported to new layer tree implementation, but that requires
non-trivial changes to the server components.
The <legend> tag is ignored by QGIS application in >= 2.4 and this way also the new project files
can be opened in older versions of QGIS without loosing information about layer groups.


#1 Updated by Martin Dobias over 7 years ago

  • Status changed from Open to Closed

#2 Updated by Marco Hugentobler over 7 years ago

I'm planning to port the server code to project/layertree in the mid-term (ideally shortly after 2.4 is out).

#3 Updated by Martin Dobias over 7 years ago

Sounds great!

#4 Updated by Martin Dobias over 7 years ago

  • Affected QGIS version changed from 2.2.0 to master

Also available in: Atom PDF