[mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED]

Puneet Kishor punk.kish at gmail.com
Tue Feb 28 07:13:42 PST 2012


On Feb 27, 2012, at 10:29 PM, Kathleen Hirst <K.Hirst at bom.gov.au> wrote:

> Dear List,
>  
> I have a NetCDF file with contains over 150 timesteps. I can create a WMS for each timestep using PROCESSING "BANDS=1", which means I have to define over 150 layers. I was hoping to only define the layer once and pass a variable for the time or the band number.
>  
> Does anyone have any ideas?

Kathleen,

I wrote the following reply, and then realized that you may not be asking for this. Have you seen http://mapserver.org/ogc/wcs_format.html?

For completeness, I will leave my original response as well.

----


Kathleen,

Neither have I done this before nor do I know the answer, but I *am* interested in how you solve it since I have interest in munging a bunch of netCDF data. I am wondering, couldn't you use the standard variable substitution as Mapserver supports that for stuff like layer names and class names? Something like (do check the exact syntax)

PROCESSING "BANDS=%band%"

and then past in the band via the query string ?band=1

http://mapserver.org/mapfile/variable_sub.html


--
Puneet Kishor 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120228/e10cb52b/attachment.html


More information about the mapserver-users mailing list