<DIV>I have some problem with using Tileindex in the layer def. as follows:</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have the Census 2000 School District boundary shapefiles in a directory.</DIV>
<DIV>I created a tile index on them with "ogrtindex ti.shp *.shp"</DIV>
<DIV>Then I created a test map file using TILEINDEX and it fails. </DIV>
<DIV>Below is the detailed list of setup and config.</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>* Tile index shape is created in/by:</STRONG></DIV>
<DIV>cd /usr/local/mapdata/schooldistrict/</DIV>
<DIV>ogrtindex ti.shp *.shp (only shapefiles; should I do ogrtindex ti.shp * rather?)</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>* Shape files and tile index shape file is in:</STRONG></DIV>
<DIV>/usr/local/mapdata/schooldistrict/</DIV>
<DIV><BR><STRONG>* Map file is </STRONG></DIV>
<DIV>/usr/local/mapapp/schdist.map</DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME SchoolDistrict<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHAPEPATH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "/usr/local/mapdata/"</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600 400<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG24<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGECOLOR&nbsp;&nbsp;&nbsp;&nbsp; 0 0 0</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>* CGI params used in test</STRONG></DIV>
<DIV>mapserv?mode=map&amp;map=/usr/local/mapapp/schdist.map&amp;layer=schooldistrict&amp;mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&amp;mapsize=600+400&amp;map_projection=init%3Depsg:4326</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><STRONG>* Error Message by MapServer</STRONG></DIV>
<DIV><STRONG>Somehow it tries to find the files in /usr/local/mapapp/ and /usr/local/mapdata/<BR>rather than in /usr/local/mapapp/schooldistrict/ . Wierd.</STRONG><BR></DIV>
<DIV>msDrawMap(): Image handling error. Failed to draw layer named 'schooldistrict'. <BR>msTiledSHPOpenFile(): Shapefile error. Unable to open a single tile to use as a template in layer schooldistrict. <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn72_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn72_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn56_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn56_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn55_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn55_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn54_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn54_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn53_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn53_d00.shp,0)
 <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn51_d00.shp,0) <BR>msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn51_d00.shp,0)</DIV>
<DIV>... [rest skipped, goes all the way&nbsp;to sn51_d00.shp&nbsp;]</DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>* "ogrinfo -al ti.shp" shows</STRONG></DIV>
<DIV>INFO: Open of `ti.shp'<BR>using driver `ESRI Shapefile' successful.</DIV>
<DIV>Layer name: ti<BR>Geometry: Polygon<BR>Feature Count: 52<BR>Extent: (-179.147340, 17.884813) - (179.778470, 71.352561)<BR>Layer SRS WKT:<BR>(unknown)<BR>LOCATION: String (80.0)<BR>OGRFeature(ti):0<BR>&nbsp; LOCATION (String) = sn01_d00.shp,0<BR>&nbsp; POLYGON ((-88.47322700 30.22113200,-88.47322700 35.00802800,-84.89089430 35.00<BR>802800,-84.89089430 30.22113200,-88.47322700 30.22113200))</DIV>
<DIV>OGRFeature(ti):1<BR>&nbsp; LOCATION (String) = sn02_d00.shp,0<BR>&nbsp; POLYGON ((-179.14734000 51.21986200,-179.14734000 71.35256064,179.77847000 71.<BR>35256064,179.77847000 51.21986200,-179.14734000 51.21986200))</DIV>
<DIV><STRONG>... [skipped]</STRONG></DIV>
<DIV>OGRFeature(ti):51<BR>&nbsp; LOCATION (String) = sn72_d00.shp,0<BR>&nbsp; POLYGON ((-67.95411900 17.88481300,-67.95411900 18.51575700,-65.22111000 18.51<BR>575700,-65.22111000 17.88481300,-67.95411900 17.88481300))<BR><STRONG></STRONG></DIV>
<DIV>... [skipped] is normal OGRFeature def., I skipped to make the email smaller</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV>Any idea? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV><p>
                <hr size=1>Do you Yahoo!?<br><a
href="http://vote.yahoo.com">vote.yahoo.com</a> - Register online to vote today!