<div dir="ltr">Thank you for the answer, it's actually possible to exclude a layer group in the QGIS Server section menu.<div><div>By the way I am looking for a way to accomplish this inside a plugin</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 1 lug 2021 alle ore 14:54 pathmapper <<a href="mailto:pathmapper@posteo.de">pathmapper@posteo.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In "Project properties" -> "QGIS Server" -> "WMS Capabilities" there's a <br>
section where it's possible to exclude layers:<br>
<br>
<a href="https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#configure-your-project" rel="noreferrer" target="_blank">https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#configure-your-project</a><br>
<br>
I think it's possible to select also layer groups there.<br>
<br>
On 01.07.2021 14:13, Marco Casalboni wrote:<br>
> I am writing a plugin that responds to a GetCapabilities request.<br>
> If I have a layer group with 0 sublayers in my project, I want to<br>
> exclude the layer group in the GetCapabilities response.<br>
> <br>
> How can I accomplish this?<br>
> <br>
> Regards<br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>