[mapserver-users] problem with raster data..

MeLv1n wAuRaN death_knight0911 at yahoo.com
Sun Feb 1 20:18:50 PST 2009


i already included the gdaltindex path in the environment variable. But another error occured, it said: 

"C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif
ERROR 4: Unable to open sample_index.shp or sample_index.SHP.
Creating new index file...
ERROR 4: `sample*.tif' does not exist in the file system,
and is not recognised as a supported dataset name.

Unable to open sample*.tif, skipping."

what do you think is the problem here?

--- On Sat, 1/31/09, Robert Sanson <SansonR at asurequality.com> wrote:
From: Robert Sanson <SansonR at asurequality.com>
Subject: Re: [mapserver-users] problem with raster data..
To: death_knight0911 at yahoo.com
Date: Saturday, January 31, 2009, 12:27 PM


 
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.
 
Option 2 is to specify the location of gdaltindex.exe when you run it:
 
eg.
 
C:\ms4w\data\raster>C:\ms4w\tools\gdaltindex sample_index.shp sample*.tif

Robert

>>> MeLv1n wAuRaN <death_knight0911 at yahoo.com> 30/01/2009 4:36 p.m. >>>




hi again robert,

i tried running it in the cmd but it gives me an error message:

C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif
'gdaltindex' is not recognized as an internal or external command,
operable program or batch file.

so, what did i miss in the mapserver configuration? i'm using MS4W_2.3.1


--- On Fri, 1/30/09, Robert Sanson <SansonR at asurequality.com> wrote:

From: Robert Sanson <SansonR at asurequality.com>
Subject: Re: [mapserver-users] problem with raster data..
To: death_knight0911 at yahoo.com
Date: Friday, January 30, 2009, 11:11 AM



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:
 
gdaltindex sample_index.shp sample*.tif
 
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.
 
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.
 
In your Map file you will need to specify the location of the sample_index.
 
regards,
 
Robert




Click here to report this email as spam.


------------------------------------------------------------------

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.

------------------------------------------------------------------


This message has been scanned for malware by SurfControl plc.  www.surfcontrol.com



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090201/cd3d93f1/attachment.htm>


More information about the MapServer-users mailing list