[mapserver-users] Re: Run-time Substitution and Raster file problem

teknocreator teknocreator at gmail.com
Sat Mar 17 08:24:39 EDT 2012


Thomas,

I'm not positive about what you wrote as I don't enclose the data string
with '*'.  The '*' in the "*_validation_pattern" I mentioned was just a
wildcard for the RTS variables that I use as we use a few in the DB call I
mentioned.

However, when I tried what you suggested, the parser tries to find a file
named ds_vis%fhour%.grb:

msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'.
msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing
file '../grib/%file%' for layer 'mosaic'. 

I've tried variations on this using the full path enclosed in quotes (which
throws the error above) and without (which throws the first one).  Then
tried this:

DATA  ../grib/%file%, (full path)/grib/%file% (with and without quotes),
thinking I should pass the whole file name.

I either get a parsing error for the '%' or it can't find the file because
the quotes cause the parser to look for a filename with '%' in it.

Dave M

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627796.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list