[Qgis-user] [Qgis user] Server plugin - exclude empty layer groups in GetCapabilities response

Marco Casalboni casalbonim at gmail.com
Thu Jul 1 06:06:11 PDT 2021


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 <pathmapper at posteo.de>
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
> > Qgis-user at lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210701/f516dd33/attachment.html>


More information about the Qgis-user mailing list