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

Guillaume Sueur guillaume.sueur at neogeo-online.net
Thu Apr 17 00:46:33 PDT 2008


Hi John,

Maybe you can also filter the getCapabilities on the server side : make 
a wrapper which will get called by the client (for instance : 
www.server.net/myOwnCapabilities?layer=layer_name&map=map.map

the wrapper will perform the standard getCapabilities on 
http://localhost/cgi-bin/mapserv and then manipulate the XML doc to 
erase all the layers nodes not requested by the user.

If it suits your need, you can go this way.

Hope that helps

Guillaume

John Maurer a écrit :
> Hi mapserver-users,
> What is the best way to provide a generic/flexible WMS-related URL for a 
> specific layer within my MapServer mapfile? I want to include this kind 
> of thing in our DIF & FGDC metadata so that users know about a WMS for a 
> given data set. If I provide a GetCapabilities request, this advertises 
> *all* of the layers in my mapfile, which represent a collection of 
> multiple data sets, most of which will be unrelated to the data set in 
> the metadata. On the other hand, if I provide a GetMap request this 
> allows me to specify the layer intended for a particular data set, but 
> it limits the output possibilities to a specific srs, format, width, 
> height, and bbox. A GetCapabilities for a specific layer would be akin 
> to what I need, but I don't think that's how it works. This is my 
> quandary and I'm hoping somebody has a solution to this kind of thing??
> Thanks!
> Cheers,
> John Maurer
> 

-- 





More information about the MapServer-users mailing list