Thank you for the answer, it's actually possible to exclude a layer group
in the QGIS Server section menu.
By the way I am looking for a way to accomplish this inside a plugin

Il giorno gio 1 lug 2021 alle ore 14:54 pathmapper <[email protected]>
ha scritto:

> In "Project properties" -> "QGIS Server" -> "WMS Capabilities" there's a
> section where it's possible to exclude layers:
>
>
> https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#configure-your-project
>
> I think it's possible to select also layer groups there.
>
> On 01.07.2021 14:13, Marco Casalboni wrote:
> > I am writing a plugin that responds to a GetCapabilities request.
> > If I have a layer group with 0 sublayers in my project, I want to
> > exclude the layer group in the GetCapabilities response.
> >
> > How can I accomplish this?
> >
> > Regards
> > _______________________________________________
> > Qgis-user mailing list
> > [email protected]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to