Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Load Layers as single WMS Layer - Freeze when switching certain layer (group) on #5337

Open
1 task done
meyerlor opened this issue Feb 3, 2025 · 2 comments
Open
1 task done
Labels
bug legend/layer tree Tool which displays the layer tree with legends QGIS Server

Comments

@meyerlor
Copy link

meyerlor commented Feb 3, 2025

What is the bug? (in English)

Hello,

first of all: I love the "Load Layers as single WMS Layer" feature. Really nice work, it makes the whole Lizmap experience so much smoother!

I now just ran into a strange Bug: When i switch a group of layers on, the map will not load anymore. See GIF: and basically freezes.

In the developer options of firefox i see a 400 Bad Request Error:


<?xml version="1.0" encoding="UTF-8"?>
<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">
 <ServiceException code="StyleNotDefined">Style 'Kontrollstatus_Spielplatz' does not exist for layer 'Spielgerät'</ServiceException>
</ServiceExceptionReport>

Which is true: The style Kontrollstatus_Spielplatz exists only for the layer "Spielplatz" - it does not exist for the layer "Spielgerät" - i can observe the same mixing up of wrong style-layer relationships in my qgis-server logs.

If i deactivate the "Load Layers as single WMS Layer" Option in the Lizmap QGIS plugin, the layers load without problem (with the right style, too).

Any idea what the problem could be?

Steps to reproduce the issue

  1. Load Lizmap map -> Working
  2. Switch Group of layers on (via Legend or via Map-Theme)
  3. Map will not refresh anymore, stays white

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.8.4 - commit be354fc be354fcbc
  • Lizmap plugin : 4.4.6
  • QGIS Desktop : 3.34.15
  • QGIS Server : 3.34.14
  • Py-QGIS-Server : not used
  • QGIS Server plugin atlasprint : 3.4.1
  • QGIS Server plugin lizmap_server : 2.12.0
  • QGIS Server plugin wfsOutputExtension : 1.8.2
List of Lizmap Web Client modules :
* altiProfil : 0.5.8 * altiProfilAdmin : 0.5.8
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

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 22.04

Browsers

Firefox

Browsers version

Firefox 115

Relevant log output

@meyerlor meyerlor added the bug label Feb 3, 2025
@meyerlor
Copy link
Author

meyerlor commented Feb 4, 2025

I digged some more into it and removed layers from the project - deleting the group of baselayers was a step leading into the right direction. Without a Orthofoto as baselayer, it worked. I then tried to re-introduce the baselayers - same problem again. BUT: With OSM as baselayer it works. I think the problem might be in the GET request:


{
	"GET": {
		"scheme": "https",
		"host": "test.de",
		"filename": "/index.php/lizmap/service",
		"query": {
			"repository": "test",
			"project": "test",
			"REQUEST": "GetMap",
			"SERVICE": "WMS",
			"VERSION": "1.3.0",
			"FORMAT": "image/png",
			"STYLES": "default,default,default,default,default,default,,,Kontrollstatus_Spielplatz,Kontrolle,default,default,default",
			"TRANSPARENT": "true",
			"LAYERS": "Orthofoto_2023_10cm,Orthofoto_2023_10cm,Bauwerke,Flurstucke,Gebaude,Gemarkungsgrenzen,Grenzpunkte,Beschriftung,Spielplatze,Spielgerat,Flachen_1,Linien_1,Punkte_Text_1",
			"DPI": "96",
			"WIDTH": "2072",
			"HEIGHT": "890",
			"CRS": "EPSG:25832",
			"BBOX": "486406.1206939714,5286091.770880298,489147.2095094824,5287269.169068427",
			"ts": "1738652482348"
		},
		"remote": {
			"Adresse": "157.91.222.90:443"
		}
	}
}

If you compare STYLES to LAYERS it does not add up - and very strangely is, that the Orthofoto_2023_10cm appears twice as layer (but it is only once in the project..). I think this is where the "Mixing up" happens - it's shifting the style it wants to load for a layer +1.

Anything i can do to solve this? I would like to support you in any way possible

@Gustry
Copy link
Member

Gustry commented Feb 4, 2025

CC @mind84 FYI

@Gustry Gustry added QGIS Server legend/layer tree Tool which displays the layer tree with legends labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug legend/layer tree Tool which displays the layer tree with legends QGIS Server
Projects
None yet
Development

No branches or pull requests

2 participants