[mapserver-users] Runtime Substitution Not Working
Ryan Dussiaume
ryan.dussiaume at mentum.com
Mon May 21 08:55:11 PDT 2012
Hi,
I'm trying to use runtime substitution to replace the DATA setting of the Mapfile at runtime. I'm running in tile mode and using GRD raster format.
Here's the mapfile:
MAP
NAME Blah2
STATUS ON
SHAPEPATH "C:/Contours/FSGrids"
PROJECTION "init=epsg:26918" END
LAYER
NAME Contour
TYPE RASTER
STATUS ON
DATA '%file%'
CLASS
NAME "Contour"
END
PROJECTION "init=epsg:26918" END
END # Layer
END
And here is a sample request for one of the tiles that I've copied from Fiddler ...
http://<my server>/cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031<http://%3cmy%20server%3e/cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031>
If I put the filename directly in the DATA setting of the mapfile it works fine and I see the grid in Virtual Earth. If I try to use runtime substitution to put the file name it just produces blank tiles.
Any help is very much appreciated, thanks!
Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120521/bc4c6300/attachment.htm>
More information about the MapServer-users
mailing list