<DIV>I have some problem with using Tileindex in the layer def. as follows:</DIV>
<DIV> </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> </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> </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> </DIV>
<DIV>MAP<BR> NAME SchoolDistrict<BR> SHAPEPATH "/usr/local/mapdata/"</DIV>
<DIV> SIZE 600 400<BR> IMAGETYPE PNG24<BR> IMAGECOLOR 0 0 0</DIV>
<DIV> LAYER<BR> NAME schooldistrict<BR> STATUS OFF<BR> TYPE POLYGON<BR> TILEINDEX /usr/local/mapdata/schooldistrict/ti.shp</DIV>
<DIV> CLASS<BR> COLOR 255 255 255<BR> OUTLINECOLOR 255 255 255<BR> END<BR> PROJECTION<BR> "init=epsg:4326"<BR> END<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV><STRONG>* CGI params used in test</STRONG></DIV>
<DIV>mapserv?mode=map&map=/usr/local/mapapp/schdist.map&layer=schooldistrict&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:4326</DIV>
<DIV> </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 to sn51_d00.shp ]</DIV>
<DIV> </DIV></DIV>
<DIV> </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> LOCATION (String) = sn01_d00.shp,0<BR> 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> LOCATION (String) = sn02_d00.shp,0<BR> 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> LOCATION (String) = sn72_d00.shp,0<BR> 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> </DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>Any idea? </DIV>
<DIV> </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!