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

teknocreator teknocreator at gmail.com
Sat Mar 17 05:58:37 PDT 2012


Thomas,

Okay, must be some sort of list editor translation as I don't have "*"
around my DATA line when I view this list message nor in my actual file. 
They're not in the query that's being sent to MapServer.  And understand
about the quotes around strings though it seems for raster images, they're
not completely necessary.

In any case, the RTS variable I specify is there in the query.  I'm using
OpenLayers to form the query and in Firebug, I can see that the RTS variable
is correctly formed.  I copy entire request string and send that to
MapServer so I can see the responses as the OpenLayers display just returns
a blank image.

Now, I decided to try moving my raster files to the SHAPEFILE area just so I
don't have to deal with any path issues.  So, if I specify the file like so
in the mapfile:

DATA "dsvis1.grb"

I get the image displayed properly (I changed the file name just to kept it
simple).  However, if I do this:

DATA "%file%"

First using Firebug, I can first see this part of the http request string to
MapServer seems to be specifying this file correctly:
"...&file=dsvis1.grb&...".  But the substitution doesn't seem to occur as
MapServer is now looking for a file named %file% instead:

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

If I take away the quotes around %file% in the data statement, I get the
parsing error.  Which is where I unfortunately began here.  

I do appreciate your suggestions and trying to eliminate possible format
issues.  Goodness knows I've had my share of user errors.  It just seems
like RTS isn't happening as expected for RASTER types.

Dave M

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



More information about the MapServer-users mailing list