Skip to content

Conversation

@meyerlor
Copy link
Contributor

@meyerlor meyerlor commented Dec 13, 2025

Having local basemaps like Orthofotos in an Cloud-Optimized format (COG - JPEG tiles in a TIFF container) and setting the option "Load layers as single WMS" highly degrades rendering time of lizmap projects. Switching from "no basemap" or OSM to the DOP adds 2-3s of rendering time for the client.

Checking the qgis-server logs led me to the conclusion that the problem can not be here: rendering time for the DOP was well below 1s (300-500ms) so the high cost likely comes from converting the original JPEG to PNG (the format of the combined requests) - setting the file format of the DOP layer in the lizmap plugin to jpeg does not change anything, as the JPEG-based DOP is added to the WMS stack which is delivered in PNG.

I propose to always render basemaps as separate layers and exclude them from the single WMS layer stack to circumvent this problem and deliver DOP as JPEG and speed up rendering time by the factor 10 (300ms instead of ~3000).

I also updated tests accordingly.

I'm very open to other suggestions for this particular problem!

The as-is status/loading time:
grafik

Here the result of rendering times with the proposed solution:
grafik

Basemaps are now always rendered as separate layers and excluded
from the single WMS layer option. Updated tests accordingly.
@github-actions github-actions bot added this to the 3.11.0 milestone Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant