gdaltindex problem

Frank Warmerdam warmerdam at POBOX.COM
Wed May 31 10:20:04 EDT 2006


Bart van den Eijnden (OSGIS) wrote:
> Shouldn't you use a DOS for loop, eg:
> 
> for %i in (path_to_data\*.ecw) do gdaltindex name_of_shapefile %i
> 
> ?
> 
> Best regards,
> Bart

Gail,

When you say there are no pathways to the ERS images, do you
mean there are no records at all in the .dbf file, or that
there are but the filename is just the basic filename with no
path?

If the problem is that there are no entries in the .dbf at all
then Bart's workaround should take care of the problem.  Alternatively
use a build of gdaltindex that includes the "setargv.obj" option
so that gdaltindex can resolve wildcards.  The FWTools build should
include this.

If the problem is that the path_to_data portion is missing from the
filename then ... well, then I'm a bit flumoxed.  I don't know how
that would happen.  You could still try Bart's for loop in case it
is the wildcard expansion that is somehow doing away with the path.
If that doesn't help contact me with clear details and a way for me
to try and reproduce the problem.

Best regards,
Frank

>>                      Dear MapServer Users,     I am trying to create an
>> index for a mosaic of ERS images, when I submit the
>> command a shapefile and dbf file are generated but
>> when I open the dbf file there are no pathways to the
>> ERS images specified even though I specify this is
>> the command e.g.      gdaltindex.exe
>> name_of_shapefile path_to_data\*.ecw     I have
>> checked that ecw is supported by using the gdalinfo
>> command and mapser.exe –v command.     I have
>> also tried the gdaltindex command for just one image
>> in the directory to see if it was a corrupt file that
>> was causing the issue but even for one file the
>> shapefile index is not being generated correctly with
>> no pathway in the dbf specified.      If anyone has
>> any suggestions for why this might be happening I
>> would really appreciate the advice. This
>> functionality worked fine on the previous server but
>> now I have installed GDAL on a new windows server
>> this issue has arisen??     Gail Millin     Geodata
>> Interoperability Support Officer  The University  of
>> Manchester  Kilburn Building  Oxford Road  M13 9PL
>>  Tel: +44 (0) 161 275 0581  E-mail:
>> Gail.Millin at manchester.ac.uk  Website:
>> http://www.landmap.ac.uk
> 
> 


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the mapserver-users mailing list