Hi Puneet, I tried the variable substitution and it didn't work as I don't think PROCESSING is one of the parameters supported.
I also looked at the link about WCS, but I only want WMS. I'm not sure how a tile index would work as I'm only using one file with multiple time bands. Plus, I looked at "Changing map file parameters via a form or a URL", but wasn't sure of the syntax to change the band number. Thanks Kathleen ________________________________ From: Puneet Kishor [mailto:[email protected]] Sent: Wednesday, 29 February 2012 2:14 AM To: Kathleen Hirst Cc: [email protected] Subject: Re: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED] On Feb 27, 2012, at 10:29 PM, Kathleen Hirst <[email protected]<mailto:[email protected]>> 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
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
