<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Messaggio</TITLE>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Hi
list,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>I have some
Georeferenced TIFFs and I made a single shapefile with "gdaltindex"
utility.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>My mapfile
is:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>MAP<BR> SHAPEPATH
"./data"<BR>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>
LAYER<BR> NAME "my_rasterlayer"<BR> TYPE
RASTER<BR> TILEINDEX "Raster_shapefile"<BR>
TILEITEM "location"<BR>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Raster_shapefile.dbf
is</SPAN></FONT><FONT face=Arial size=2><SPAN
class=620473715-31032005>:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>LOCATION</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>Raster1.tif</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>Raster2.tif</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>All
works.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Now I want to move
ONLY my raster files (and obviously the index shapefile!) in a subfolder
(./data/subfolder), leaving other shapefiles in ./data .</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>I modify my mapfile
in this manner:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>MAP<BR> SHAPEPATH
"./data"<BR>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>
LAYER<BR> NAME "my_rasterlayer"<BR> TYPE
RASTER<BR> TILEINDEX
"./subfolder/Raster_shapefile"<BR> TILEITEM
"location"<BR>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Mapserver now DON'T
SHOW the raster layer!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>I have to manually
modify values in "Raster_shapefile.dbf":</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>LOCATION</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>subfolder/Raster1.tif</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005><SPAN
class=620473715-31032005>subfolder/</SPAN>Raster2.tif</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005>...</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Only with this
change all works as before.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Is it
normal?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Why raster are
searched in the SHAPEPATH directory instead of the shapefile
directory?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Should I file a
bug?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>I'm
using:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>MapServer version
4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT
INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>on a Linux Red Hat
9.0.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>Thank
you,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=620473715-31032005>
Daniele</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=620473715-31032005></SPAN></FONT> </DIV></BODY></HTML>