3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
261 stars 144 forks source link

COG Raster as Embed layers are not displayed #4169

Open arno974 opened 9 months ago

arno974 commented 9 months ago

What is the bug?

COG raster layer from a parent QGIS project in a children QGIS are correctly displayed in QGIS but not ni Lizmap.

For example my "parent" QGIS project contains 3 raster layers. 2 are cog raster and one is a gpkg raster.

image

My "children" QGIS project contains all the embed layers from the "parent" project and one raster layer added as a "normal" raster layer :

image

In Lizmap, the layers from the "parent" project display perfectly. However, in the child project, only the GPKG embed layers and the raster layer directly integrated are displayed.

image

This used to work in previous 3.6 version. It was very useful as it was possible to centralize the tiles cache as they were generated for the "master" basemap project.

Steps to reproduce the issue

  1. Add an embed layer (or a group of layers) as basemap
  2. Layers are correctly displayed in QGIS
  3. Check in Lizmap, layers are not available

Versions :

List of Lizmap Web Client modules :
* Version Lizmap Web Client 3.8 needed
List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu

Browsers

Firefox

Browsers version

122.0

Relevant log output

No response

Gustry commented 9 months ago

QGIS Desktop : 3.28.11 QGIS Server : 3.22.7

This is a problem, using QGIS Desktop with a higher version than the server. The XML written in the "future" might not be read well by an old version of the server. There are a few warnings in plugins with this configuration.

FYI , there are a few bugfix about embed layers https://github.com/3liz/lizmap-web-client/pulls?q=is%3Apr+embed+

arno974 commented 9 months ago

Sorry @Gustry , the version I've copy/paste was the one from my other server (not the new one with Lizmap 3.7 installed). I've updated my ticket. As you can see the QGIS version and the QGIS Server Version are the same.

Thanks for your help

Gustry commented 1 month ago

When adding an embed layer (layer from another project) in the baselayers group (or adding the whole baselayers group from another project) the layer or all the layers (if the whole group is added) are not displayed.

I'm clearly not sure about "adding the whole baselayers group from another project".

But adding individual layers in the baselayers group should work, see the ticket on plugin side to allow it : https://github.com/3liz/lizmap-plugin/issues/601 Did you upgrade your Lizmap plugin ? Can you try on latest 3.8 version ?

arno974 commented 1 month ago

Hi @Gustry ,

Thanks for your answer.

In another project, layers are embed individually (not the whole groupe). But the result is the same. Projects are hosted in your infra if you want to check. Contact me and I will give you the URL and the projects.

Here is my current versions :

Versions :

List of Lizmap Web Client modules :
* Version Lizmap Web Client 3.8 needed
List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes
Gustry commented 1 month ago

In PR #4846 #4848 and #4850, I have added an embedded layer in the baselayers group for testing. It's vector layer for now.

github-actions[bot] commented 2 weeks ago

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎