<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Times New Roman, Times, serif">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" "*"<br>
      <br>
<a class="moz-txt-link-freetext" href="http://freegis.org/pipermail/mapserver-de/2011-September/004477.html">http://freegis.org/pipermail/mapserver-de/2011-September/004477.html</a><br>
      <a class="moz-txt-link-freetext" href="http://freegis.org/pipermail/mapserver-de/2011-September/004479.html">http://freegis.org/pipermail/mapserver-de/2011-September/004479.html</a>
      <br>
      <br>
      Jan</font><br>
    <br>
    <br>
    On 09/10/2011 01:44 PM, Jan Hartmann wrote:
    <blockquote cite="mid:4E6B4DB1.9040706@uva.nl" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <font face="Times New Roman, Times, serif">Hi folks,<br>
        <br>
        Is the following possible:&nbsp; I have a MapFile with&nbsp; 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 <br>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://mapserver.org/trunk/development/rfc/ms-rfc-67.html#rfc67">http://mapserver.org/trunk/development/rfc/ms-rfc-67.html#rfc67</a>
        <br>
        <br>
        this can be done&nbsp; 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?<br>
        <br>
        Jan</font> <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
    </blockquote>
  </body>
</html>