[mapserver-users] Hiding the layers contained in a group from the WMS GetCapabilities
Stephan Meißl
stephan at meissl.name
Thu Oct 20 06:32:53 PDT 2011
Hm, good question. In INSPIRE we didn't try to turn off/on single
layers/groups so far. Besides that we're investigating the usage of
"wms_layer_group" for arbitrary grouping of layers to any depth in favor
of the GROUP directive which allows grouping only for one level.
cu
Stephan
On Thu, 2011-10-20 at 08:42 -0400, Daniel Morissette wrote:
> I don't think MapServer 6.0 supports what you are trying to do, but I
> think this is something that was going to be addressed by the INSPIRE
> work (RFC 75, ticket #3608). Not sure if that's in place in trunk
> already or not.
>
> Stephan Meissl would be best to answer that one if he's reading this...
> or otherwise you could ask on the mapserver-inspire list.
>
> Daniel
>
> On 11-10-20 05:52 AM, Alexandre Saunier wrote:
> > Hello,
> >
> > I would like that only the groups appear in my WMS GetCapabilities
> > response, not the layers they contain, with Mapserver 6.0.0.
> >
> > I have tried to add the following metadata:
> > "wms_enable_request" "!GetCapabilities"
> > in the layer definition. For instance:
> >
> > LAYER
> > NAME "layer1"
> > GROUP "foobar"
> > TYPE polygon
> > METADATA
> > "wms_title" "layer1"
> > "wms_group_title" "foobar"
> > "wms_enable_request" "!GetCapabilities"
> > END
> > END
> >
> > It works correctly (*) but when all the layers are removed from the
> > GetCapabilities, the parent group disappears as well.
> > Is there a way to keep the group visible in the GetCapabilities even
> > when all its layers are hidden?
> >
> > Thanks,
> > Alexandre
> >
> > (*) Actually I have noticed weird behaviours when only some of the
> > group layers are marked "hidden". There's already a ticket about that
> > issue:
> > http://trac.osgeo.org/mapserver/ticket/3931
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
More information about the MapServer-users
mailing list