<div>Hi guys,</div>
<div>&nbsp;</div>
<div>I have a subfolder with GIFs and corresponding .wld files, after performing the gdaltindex command, a &quot;thousand_tile.shp&quot; shapefile and its related&nbsp;.dbf, .shx&nbsp;and .qix files are created, these seem to be fine&nbsp;in the FWTool shell, I defined the things in the mapfile like this:
</div>
<div>****</div>
<div>EXTENT 205564.586360688 5013961.36761585 672612.323291219 5346702.44618207</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div>SHAPEPATH &quot;./RasterData&quot;</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div>LAYER<br>&nbsp;&nbsp;&nbsp; NAME &quot;Test&quot;<br>&nbsp;&nbsp;&nbsp; TYPE RASTER<br>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>&nbsp;&nbsp;&nbsp; TILEINDEX &quot;thousand_tile&quot;<br>&nbsp;&nbsp;&nbsp; TILEITEM &quot;LOCATION&quot;<br>&nbsp;&nbsp;&nbsp; #PROJECTION<br>&nbsp;&nbsp;&nbsp; #&nbsp; &quot;init=epsg:4326&quot;<br>
&nbsp;&nbsp;&nbsp; #END<br>END</div>
<div>******</div>
<div>I've tried also with or without projection information, it still does not work. And the error info in the IE browser is:</div>
<div>&nbsp;</div>
<div>msDrawMap(): Image handling error. Failed to draw layer named 'Test'. <br>msSHPOpenFile(): Unable to access file. (/ms4w/apps/Demo/thousand_tile) <br>msSHPOpenFile(): Unable to access file. (/ms4w/apps/Demo/./RasterData/thousand_tile) 
</div>
<div>&nbsp;</div>
<div>I just wondered why there are two msSHPOpenFIle() error messages, the /Demo/ is the directory of the mapfile, and the thousand_tile.shp is in the subfolder Demo/RasterData. This path setting works for all the other vector shapefiles, if I delete the above defined raster layer, the map image is returned as normal, but with the raster layer the above given error messages are returned instead.
</div>
<div>&nbsp;</div>
<div>there should be somewhere a stupid mistake I made, but I have no idea where it is.</div>
<div>&nbsp;</div>
<div>Can you find anything wrong in the above definition?</div>
<div>&nbsp;</div>
<div>I am using MapServer on WINXP with IIS, the backslash and forward slash make no differences, both work well on WINXP.</div>
<div>&nbsp;</div>
<div>thanks so much for lighting me.</div>
<div>&nbsp;</div>
<div>zhonghai</div>
<div>&nbsp;</div>
<div>29.05.2006</div>