[mapserver-users] GetCapabilities for a specific layer, not the entire mapfile?

Daniel Morissette dmorissette at mapgears.com
Thu Apr 17 05:20:01 PDT 2008


Armin Burger wrote:
> 
> [...] Or using the main map file and deleting all layers but the requested one with 'removeLayer()'. This does not work with PHP Mapscript since this method does not exist there. 
> 

The removeLayer() method does not exist in PHP MapScript, but you can 
achieve the same result by using the DELETED status on the layers to 
hide from the GetCapabilities:

   $layer->set("status", MS_DELETE);

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the MapServer-users mailing list