[PATCH] make default raster image path relative to tileindex file

David Fuhry dfuhry at CS.KENT.EDU
Mon Oct 29 20:20:25 EDT 2007


The attached path makes the path of image files for a TILEINDEX layer 
relative to the directory of the TILEINDEX shapefile, if the map's 
SHAPEPATH is not set.

I prefer having the path fall back to the TILEINDEX file's directory 
rather than the mapfile directory, because the tile index file and the 
raster imagery tend to be colocated, on a large volume separate from the 
mapfile.  Maybe there are some good reasons for relative-to-mapfile 
behavior too, but I couldn't think of any.  Behavior is unchanged if the 
SHAPEPATH is set.

The patch also removes an unused variable from msDrawRaster() and prints 
out the full (instead of relative) path of a raster file if that file 
could not be opened.  Printing the full path helped me with error 
resolution; some might consider it less secure to be displaying it though.

-Dave Fuhry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserver-raster-abs-tileindex.patch
Type: text/x-patch
Size: 1326 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20071029/e52966aa/mapserver-raster-abs-tileindex.bin


More information about the mapserver-dev mailing list