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
254 stars 143 forks source link

Lizmap loads the baselayer as a single tile even if this option is uncheked in the Lizmap QGIS Extension #4222

Open arno974 opened 7 months ago

arno974 commented 7 months ago

What is the bug?

In my Lizmap 3.7 instance, even if my baselayer parameter "single tile" is uncheck Lizmap still display the layer as a single tile. Lizmap displays the layers as tiles only if the "Server cache" parameter is checked.

Probably not directly related, but even with the "Server cache" parameter checked no tiles are cached. The cache directory still remains empty. Trying to force the creation of the cache with console.php wmts:cache:seed only returns error :

sudo php lizmap/console.php wmts:cache:seed -v -f repo project  "orthophotos-974-2022_cog_tif" EPSG:3857 11 11
The TileMatrixSet 'EPSG:3857'!
20 tiles to generate for "orthophotos-974-2022_cog_tif" "EPSG:3857" "11"
20 tiles to generate for "orthophotos-974-2022_cog_tif" "EPSG:3857" between "11" and "11"
Start generation
================
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1337
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1338
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1339
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1340
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1341
Progression: 25%, 5 tiles generated on 20 tiles
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1337
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1338
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1339
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1340
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1341
Progression: 50%, 10 tiles generated on 20 tiles
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1337
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1338
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1339
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1340
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1341
Progression: 75%, 15 tiles generated on 20 tiles
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1337
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1338
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1339
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1340
Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1341
Progression: 100%, 20 tiles generated on 20 tiles
================
End generation

Steps to reproduce the issue

  1. In QGIS, unchek single tile for a layer
  2. Open Lizmap Web the layer is still loaded as a single tile
  3. In QGIS, check server cache for the same layer
  4. The layer is displayed as tiles

Versions, safeguards, check summary etc

Versions :

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 20.04

Browsers

Firefox

Browsers version

Firefox 122.0

Relevant log output

No response

Antoviscomi commented 7 months ago

In my Lizmap 3.7 instance, even if my baselayer parameter "single tile" is uncheck Lizmap still display the layer as a single tile. Lizmap displays the layers as tiles only if the "Server cache" parameter is checked.

@arno974 in mine LWC 3.7.3, if I uncheck single tile without to check layer cache as in screenshot

Schermata del 2024-02-21 12-16-56

the basemap come loaded as single tile as in screencast (because of none option is checked)

Video del 21-02-2024 09:28:37_1.webm

if I check on layer cache the basemap come as tiled, as in screencast

Video del 21-02-2024 12:15:45_1.webm

that it seems the correct behaviour

> Start generation
> ================
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1337
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1338
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1339
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1340
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1145 / 1341
> Progression: 25%, 5 tiles generated on 20 tiles
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1337
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1338
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1339
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1340
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1146 / 1341
> Progression: 50%, 10 tiles generated on 20 tiles
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1337
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1338
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1339
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1340
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1147 / 1341
> Progression: 75%, 15 tiles generated on 20 tiles
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1337
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1338
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1339
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1340
> Error, tile not cached: orthophotos-974-2022_cog_tif / EPSG:3857 / 11 / 1148 / 1341
> Progression: 100%, 20 tiles generated on 20 tiles
> ================
> End generation

this process works at the same way for me

sudo php lizmap/console.php wmts:cache:seed -v -f tempor ProvaFiles OpenTopoMap EPSG:3857 11 11
The TileMatrixSet 'EPSG:3857'!
9 tiles to generate for "OpenTopoMap" "EPSG:3857" "11"
9 tiles to generate for "OpenTopoMap" "EPSG:3857" between "11" and "11"
Start generation
================
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 777 / 1114
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 777 / 1115
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 777 / 1116
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 778 / 1114
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 778 / 1115
Progression: 55%, 5 tiles generated on 9 tiles
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 778 / 1116
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 779 / 1114
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 779 / 1115
Error, tile not cached: OpenTopoMap / EPSG:3857 / 11 / 779 / 1116
================
End generation
arno974 commented 6 months ago

Hi @Antoviscomi,

If you uncheck the single tile option, the layer should be loaded as tiles. Then if you check the Server cache option, the tiles should be cached.

Currently, if you uncheck the single tile option the layer is still loaded as a single tile (at least for me).

For me it is not the correct behaviour, layer with single tile option unchecked should be loaded as tiles.

Antoviscomi commented 6 months ago

For me it is not the correct behaviour, layer with single tile option unchecked should be loaded as tiles.

@arno974 right but which of tiles LWC should choose without a tiles definition? (I mean without a check on cache which in turn gives the control on tiles)