<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&gt;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>&lt;SansonR@asurequality.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Robert Sanson &lt;SansonR@asurequality.com&gt;<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>&nbsp;</div>
<div>Option 2 is to specify the location of gdaltindex.exe when you run it:</div>
<div>&nbsp;</div>
<div>eg.</div>
<div>&nbsp;</div>
<div>C:\ms4w\data\raster&gt;C:\ms4w\tools\gdaltindex sample_index.shp sample*.tif<br></div>
<div>Robert<br><br>&gt;&gt;&gt; MeLv1n wAuRaN &lt;death_knight0911@yahoo.com&gt; 30/01/2009 4:36 p.m. &gt;&gt;&gt;<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&gt;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>&lt;SansonR@asurequality.com&gt;</i></b> wrote:<br>
<blockquote>From: Robert Sanson &lt;SansonR@asurequality.com&gt;<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>&nbsp;</div>
<div>gdaltindex sample_index.shp sample*.tif</div>
<div>&nbsp;</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>&nbsp;</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>&nbsp;</div>
<div>In your Map file you will need to specify the location of the sample_index.</div>
<div>&nbsp;</div>
<div>regards,</div>
<div>&nbsp;</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&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;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>