Open arno974 opened 5 years ago
Hello! Do you have any updates? Is there a chance to change the described behavior? I have the same issue:
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
Lizmap 1:2000
Add WMS Layer to your QGIS project URL: http://integracja.gugik.gov.pl/cgi-bin/KrajowaIntegracjaEwidencjiGruntow
Select first line
Set scale to 1:2000
See parcels with numbers, buildings with numbers
Check project in Lizmap web client
The same WMS layer, just like in QGIS - parcels with numbers, buildings with numbers
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).
Another test
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.
@bgisb You have to update to Lizmap 3.3.x. Lizmap 3.2.x works with QGIS 2.18.
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