[qgis-qwc2] R: R: Issue displaying WMS service in QWC2

Jonny Siciliano jonny.siciliano at suedtirolgas.it
Tue Apr 29 06:16:59 PDT 2025


Hi Sandro, thank you very much for your reply!

My problem is displaying a WMS layer using the QWC2 library.
After several attempts, I added an externalLayer entry in the themes.json file as shown below.

"externalLayers": [
  {
    "name": "wms:https://geoservices5.civis.bz.it/geoserver/wms#ParcelsPolygons",
    "type": "wms",
    "url": "https://geoservices5.civis.bz.it/geoserver/wms",
    "params": {
      "LAYERS": "ParcelsPolygons"
    },
    "infoFormats": [
      "text/plain"
    ]
  },
]

In the items section, I also included a line with the name of the layer to be replaced from the wms in the .qgz file exported from QGIS.

“items”: [
……
"externalLayers": [
     {
       "internalLayer": "KatasterWMS - catastoWMS",
       "name": "wms:https://geoservices5.civis.bz.it/geoserver/wms#ParcelsPolygons"
     },
]
….
]

I'm not sure if this is the correct configuration, but it appears to be working. Could you kindly provide some feedback?

My only remaining question is how to display external WMS services that require basic authentication.
Is there a way to set the username and password for such services?

Thank you for the support,
Kind regards

Jonny Siciliano
Techniker Netzdienstleistung Gas | Tecnico Servizio Distribuzione Gas

T +39 0471 098 414
M +39 3357099071
F +39 0471098401
jonny.siciliano at suedtirolgas.it<mailto:jonny.siciliano at suedtirolgas.it>
www.suedtirolgas.it
[cid:image001.jpg at 01DBB919.BEA1D740]






Südtirolgas AG/SPA
I-39100 Bozen, Josef-Ressel-Straße 2
I-39100 Bolzano, Via Josef Ressel 2
St.- und Eintragungsnr. im HR Bozen / CF e nr. iscr. RI Bolzano 08284030155
MwSt.-Nr. / P. IVA 01396650218
Ges. Kap. / Cap. soc. Euro 16.400.000,00 v.e. / i.v.
Gesellschaft unter Leitung und Koordinierung der Selfin GmbH / Società soggetta a direzione e coordinamento di Selfin Srl
„ACHTUNG! Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne EU-Datenschutz-Grundverordnung Nr. 679/2016 als streng vertraulich und dürfen von anderen Personen nicht verwendet werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.”
“ATTENZIONE! Questo documento è indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del regolamento europeo generale sulla protezione dati n. 679/2016 e ne è proibito l'utilizzo da parte di altri soggetti. Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e provvedere alla cancellazione del presente messaggio. Grazie.”
Da: Sandro Mani <manisandro at gmail.com>
Inviato: martedì 29 aprile 2025 09:18
A: Jonny Siciliano <jonny.siciliano at suedtirolgas.it>; qgis-qwc2 at lists.osgeo.org
Oggetto: Re: [qgis-qwc2] R: Issue displaying WMS service in QWC2


Hello

I believe your first email was not delivered to the mailing list for some reason, or at least I don't see it.

In any case concerning your quesition: is your problem that you can't configure the theme for the QGIS project which includes the WMS layer?

Kind regards
Sandro
On 28.04.25 11:05, Jonny Siciliano via qgis-qwc2 wrote:
Dear all,

Good morning, has anyone had a chance to see this message?
As this is my first time sending a message regarding the QWC2 library, I would like to make sure I posted to the correct address.
Thank you in advance.

Best regards,

Jonny Siciliano
Techniker Netzdienstleistung Gas | Tecnico Servizio Distribuzione Gas

T +39 0471 098 414
M +39 3357099071
F +39 0471098401
jonny.siciliano at suedtirolgas.it<mailto:jonny.siciliano at suedtirolgas.it>
www.suedtirolgas.it<http://www.suedtirolgas.it>


[cid:image001.jpg at 01DBB919.BEA1D740]




Südtirolgas AG/SPA
I-39100 Bozen, Josef-Ressel-Straße 2
I-39100 Bolzano, Via Josef Ressel 2
St.- und Eintragungsnr. im HR Bozen / CF e nr. iscr. RI Bolzano 08284030155
MwSt.-Nr. / P. IVA 01396650218
Ges. Kap. / Cap. soc. Euro 16.400.000,00 v.e. / i.v.
Gesellschaft unter Leitung und Koordinierung der Selfin GmbH / Società soggetta a direzione e coordinamento di Selfin Srl
„ACHTUNG! Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne EU-Datenschutz-Grundverordnung Nr. 679/2016 als streng vertraulich und dürfen von anderen Personen nicht verwendet werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.”
“ATTENZIONE! Questo documento è indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del regolamento europeo generale sulla protezione dati n. 679/2016 e ne è proibito l'utilizzo da parte di altri soggetti. Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e provvedere alla cancellazione del presente messaggio. Grazie.”
Da: Jonny Siciliano
Inviato: mercoledì 23 aprile 2025 13:02
A: qgis-qwc2 at lists.osgeo.org<mailto:qgis-qwc2 at lists.osgeo.org>
Oggetto: Issue displaying WMS service in QWC2

Dear QWC2 Team,
I am encountering an issue while testing your library, specifically with displaying a WMS service in QWC2.

  1.  When I load the WMS service directly into QGIS (version 3.34.15), the layer displays correctly.
  2.  The layer is also visible without issues when using the "Import Layer" function in QWC2.
[cid:image002.png at 01DBB919.BEA1D740]
However, when I try to convert the .qgz file using themesConfig via package.json for the online visualization of the layer, I always receive the following error: <ServerException>Layer(s) not valid</ServerException>
Do you have any idea what might be causing this issue, or how I can resolve it?
Thank you in advance for your support.
Best regards,


Sehr geehrtes QWC2 Team,
bei der Verwendung Ihrer Bibliothek stoße ich auf ein Problem mit der Darstellung eines WMS-Dienstes in QWC2.

  1.  Wenn ich den WMS-Dienst direkt in QGIS (Version 3.34.15) lade, wird der Layer korrekt angezeigt.
  2.  Auch über die Funktion „Layer importieren“ in QWC2 ist der Layer ohne Probleme sichtbar.
[cid:image002.png at 01DBB919.BEA1D740]
Wenn ich jedoch versuche, die .qgz-Datei über themesConfig in package.json für die Online-Darstellung des Layers zu konvertieren, erhalte ich stets folgenden Fehler: <ServerException>Layer(s) not valid</ServerException>
Haben Sie eine Idee, woran das liegen könnte, oder wie ich das Problem beheben kann?
Vielen Dank im Voraus für Ihre Unterstützung.
Mit freundlichen Grüßen

Jonny Siciliano
Techniker Netzdienstleistung Gas | Tecnico Servizio Distribuzione Gas

T +39 0471 098 414
M +39 3357099071
F +39 0471098401
jonny.siciliano at suedtirolgas.it<mailto:jonny.siciliano at suedtirolgas.it>
www.suedtirolgas.it<http://www.suedtirolgas.it>


[cid:image001.jpg at 01DBB919.BEA1D740]




Südtirolgas AG/SPA
I-39100 Bozen, Josef-Ressel-Straße 2
I-39100 Bolzano, Via Josef Ressel 2
St.- und Eintragungsnr. im HR Bozen / CF e nr. iscr. RI Bolzano 08284030155
MwSt.-Nr. / P. IVA 01396650218
Ges. Kap. / Cap. soc. Euro 16.400.000,00 v.e. / i.v.
Gesellschaft unter Leitung und Koordinierung der Selfin GmbH / Società soggetta a direzione e coordinamento di Selfin Srl
„ACHTUNG! Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne EU-Datenschutz-Grundverordnung Nr. 679/2016 als streng vertraulich und dürfen von anderen Personen nicht verwendet werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.”
“ATTENZIONE! Questo documento è indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del regolamento europeo generale sulla protezione dati n. 679/2016 e ne è proibito l'utilizzo da parte di altri soggetti. Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e provvedere alla cancellazione del presente messaggio. Grazie.”



_______________________________________________

qgis-qwc2 mailing list

qgis-qwc2 at lists.osgeo.org<mailto:qgis-qwc2 at lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20250429/06d07b4a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 28006 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20250429/06d07b4a/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 2128 bytes
Desc: image002.png
URL: <http://lists.osgeo.org/pipermail/qgis-qwc2/attachments/20250429/06d07b4a/attachment-0001.png>


More information about the qgis-qwc2 mailing list