<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">i already included the gdaltindex path in the environment variable. But another error occured, it said: <br><br>"C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif<br>ERROR 4: Unable to open sample_index.shp or sample_index.SHP.<br>Creating new index file...<br>ERROR 4: `sample*.tif' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>Unable to open sample*.tif, skipping."<br><br>what do you think is the problem here?<br><br>--- On <b>Sat, 1/31/09, Robert Sanson <i><SansonR@asurequality.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Robert Sanson <SansonR@asurequality.com><br>Subject: Re: [mapserver-users] problem with raster data..<br>To: death_knight0911@yahoo.com<br>Date: Saturday, January 31, 2009, 12:27
PM<br><br><div id="yiv1490136984">
<div>It looks like it can't find gdaltindex.exe in the PATH environment variable. You will have to add the directory that gdaltindex.erxe lives in to your PATH variable, via Control Panel.</div>
<div> </div>
<div>Option 2 is to specify the location of gdaltindex.exe when you run it:</div>
<div> </div>
<div>eg.</div>
<div> </div>
<div>C:\ms4w\data\raster>C:\ms4w\tools\gdaltindex sample_index.shp sample*.tif<br></div>
<div>Robert<br><br>>>> MeLv1n wAuRaN <death_knight0911@yahoo.com> 30/01/2009 4:36 p.m. >>><br></div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">hi again robert,<br><br>i tried running it in the cmd but it gives me an error message:<br><a rel="nofollow"></a><br>C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif<br>'gdaltindex' is not recognized as an internal or external command,<br>operable program or batch file.<br><br>so, what did i miss in the mapserver configuration? i'm using MS4W_2.3.1<br><br><br>--- On <b>Fri, 1/30/09, Robert Sanson <i><SansonR@asurequality.com></i></b> wrote:<br>
<blockquote>From: Robert Sanson <SansonR@asurequality.com><br>Subject: Re: [mapserver-users] problem with raster data..<br>To: death_knight0911@yahoo.com<br>Date: Friday, January 30, 2009, 11:11 AM<br><br>
<div id="yiv1319705926">
<div>If you intend to store the sample_index.shp file in the same directory as your TIF files, then open a DOS cmd window and navigate to that directory "cd c:\ms4w\data\raster". once you are there, simply run:</div>
<div> </div>
<div>gdaltindex sample_index.shp sample*.tif</div>
<div> </div>
<div>This will create the sample_index.shp file in that directory. the accompanying .dbf file will haev a single attribute field "Location" that will hold the name of each TIF file.</div>
<div> </div>
<div>If you want, you can spatially index this file using the shptree utility that comes with Mapserver. It will create a spatial index .qix file.</div>
<div> </div>
<div>In your Map file you will need to specify the location of the sample_index.</div>
<div> </div>
<div>regards,</div>
<div> </div>
<div>Robert</div><br></div></blockquote></td></tr></tbody></table><br><br><br><font style="background-color: rgb(255, 255, 255);">
<p align="center"><font style="background-color: rgb(255, 255, 255);">Click <a rel="nofollow" target="_blank" href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</a> to report this email as spam.</font></p></font><br><br><table style="color: black;" bgcolor="white"><tbody><tr><td><br>------------------------------------------------------------------<br>
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<br>
------------------------------------------------------------------</td></tr></tbody></table><br><br>
<p align="center"><font style="background-color: rgb(255, 255, 255);">This message has been scanned for malware by SurfControl plc. </font><a rel="nofollow" target="_blank" href="http://www.surfcontrol.com/"><font style="background-color: rgb(255, 255, 255);" color="#000000">www.surfcontrol.com</font></a></p>
</div></blockquote></td></tr></table><br>