[GIS] Hiding layers in mapfile (Mapserver) from WMS requests

mapserverwms

We have a Mapserver mapfile used in a web app with a lot of layers. We want to publish only some of them with WMS, keeping the others hidden to any WMS request.

It has to be the same mapfile and we need each layer has its NAME attribute specified

Is there any way to do this?

Best Answer

Have a look at this:

http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices

or better yet:

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

I don't think it's possible right now, maybe in the forthcoming 6.0 version, according to:

http://trac.osgeo.org/mapserver/ticket/337

Related Question