Got a solution for this question from an answer by Flavio Hendry on the German mailing list to a slightly different question: use UNION layers, a "new and exciting" (indeed!) item of MapServer 6. Just add "ows_enable_request" "!GetCapabilities" to the WMS metatdata of layers you want to hide, create a single UNION layer with all those layers in the "connection" , and set that layer's metadata to "ows_enable_request" "*"

http://freegis.org/pipermail/mapserver-de/2011-September/004477.html
http://freegis.org/pipermail/mapserver-de/2011-September/004479.html

Jan


On 09/10/2011 01:44 PM, Jan Hartmann wrote:
Hi folks,

Is the following possible: I have a MapFile with a few groups, each consisting of multiple layers that are displayed dependent on the chosen scale. I want to display only the group names in the GetCapabilities request, and according to

http://mapserver.org/trunk/development/rfc/ms-rfc-67.html#rfc67

this can be done with the "ows_enable_request" directive. I have tried different combinations of "ows_enable_request *" and "ows_enable_request !getcapabilities" in the web- and layer metadata, but I get either GetCapabilities for all layers, or for none at all. How can I get the GetCapabilities of all groups and nothing more?

Jan


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to