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

Third Party WMS Layers do not list all the layers #1271

Open arno974 opened 5 years ago

arno974 commented 5 years ago

I've been using the "third Party WMS Layers" option and I was surprised by the results.The tiles downloaded by Lizmap was most of the time totaly transparent.

After searching if the problem was from my configuration, I've looked on the URL sent by Lizmap and found the problem. In fact, my WMS map in QGIS is made by merging multiples layers (ID 0 in QGIS) of the WMS server. But in Lizmap if I check the option "third Party WMS Layers" only the last layer seems to be taken into account.

Example :

Query from Lizmap using the developper tools : The only layers specified is BORNE_REPERE even if I ask in QGIS for all the layers https://inspire.cadastre.gouv.fr/scpc/97401.wms?VERSION=1.3.0&LAYERS=BORNE_REPERE&STYLES=&CRS=EPSG:2975&FORMAT=image/png&TRANSPARENT=true&EXCEPTIONS=application/vnd.ogc.se_inimage&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:2975&BBOX=325228.80418604653,7654492.747170977,332266.7349285747,7661530.677913505&WIDTH=266&HEIGHT=266

The same query with all the layers : https://inspire.cadastre.gouv.fr/scpc/97401.wms?VERSION=1.3.0&LAYERS=CP.CadastralParcel&layers=AMORCES_CAD&layers=LIEUDIT&layers=SUBFISCAL&layers=CLOTURE&layers=DETAIL_TOPO&layers=HYDRO&layers=VOIE_COMMUNICATION&layers=BU.Building&layers=BORNE_REPERE&STYLES=&CRS=EPSG:2975&FORMAT=image/png&TRANSPARENT=true&EXCEPTIONS=application/vnd.ogc.se_inimage&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:2975&BBOX=325228.80418604653,7654492.747170977,332266.7349285747,7661530.677913505&WIDTH=266&HEIGHT=266

The second query returns the image as expected while the first one returns an image totally transparent.

Note : the problem may be similar to this post : https://github.com/3liz/lizmap-web-client/issues/695

bgisb commented 4 years ago

Hello! Do you have any updates? Is there a chance to change the described behavior? I have the same issue:

What is the bug?

A project with the WMS layer displays only one (first) layer, even if the WMS layer has more layers. a Request is sent only with this first layer.

QGIS 1:2000 image

Lizmap 1:2000 image

Steps to reproduce the issue

  1. Add WMS Layer to your QGIS project URL: http://integracja.gugik.gov.pl/cgi-bin/KrajowaIntegracjaEwidencjiGruntow

  2. Select first line image

  3. Set scale to 1:2000

  4. See parcels with numbers, buildings with numbers image

  5. Check project in Lizmap web client

Expected behavior

The same WMS layer, just like in QGIS - parcels with numbers, buildings with numbers

Environment

gioman commented 4 years ago

QGIS Server version: 3.8.0-Zanzibar

@arno974 you should test if this is a QGIS server issue first, and in this sense you should upgrade to the latest LTR, because 3.8.0 is really too old (and unsupported).

bgisb commented 4 years ago

Another test

Environment

Lizmap version: 3.2.1 Server: Qgis FCGI server - QGis version 3.10.1-A Coruña QGIS Project version: 3.10.3 OS: Windows Browser: Chrome

I'm afraid, even with QGIS Server 3.10.1, the issue still exists.

nboisteault commented 4 years ago

@bgisb You have to update to Lizmap 3.3.x. Lizmap 3.2.x works with QGIS 2.18.