On 11-10-18 04:36 AM, Rahkonen Jukka wrote:
Hi,
It is also possible to create a mask layer with REQUIRES keywork. The
snippet below will make the "mask" layer to draw always when the
"countries" layer is drawn. However, it is not automatically drawn if
you ask for any other layer. One minory drawback is that the mask layer
is also listed in the GetCapabilities as a normal WMS layer.
LAYER
NAME "mask"
....
REQUIRES "[countries]"
...
END
Great suggestion. And with MapServer 6.x you can hide the mask layer
from the GetCapabilities using the "ows_enable_request" metadata:
LAYER
NAME "mask"
....
REQUIRES "[countries]"
METADATA
"ows_enable_request" "!GetCapabilities"
...
END
...
END
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users