MeLv1n wAuRaN wrote:
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...
This error is ok, it is just telling you that the index file does not
already exist and it is creating a new one. gdaltindex appends to an
existing file so keep that in mind if you need to add to your tileindex.
ERROR 4: `sample*.tif' does not exist in the file system,
and is not recognised as a supported dataset name.
This says that there are no files in the current directory named
sample*.tif what does a dir command respond with?
-Steve W
Unable to open sample*.tif, skipping."
what do you think is the problem here?
--- On *Sat, 1/31/09, Robert Sanson /<[email protected]>/* wrote:
From: Robert Sanson <[email protected]>
Subject: Re: [mapserver-users] problem with raster data..
To: [email protected]
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 <[email protected]> 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 /<[email protected]>/* wrote:
From: Robert Sanson <[email protected]>
Subject: Re: [mapserver-users] problem with raster data..
To: [email protected]
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 <https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==>
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 <http://www.surfcontrol.com/>
------------------------------------------------------------------------
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users