[Gdal-dev] gdaltindex on numerous files

Ivan Lucena ILucena at clarku.edu
Wed Jun 14 10:26:37 EDT 2006


Tom,

UNIX handles wildcard different than Windows. It will expand it and then
rebuild your command line. That is way it could be to long. 

You should make UNIX create one command for each file found using
something like:

$ find $PWD -name '*.tif' -exec gdaltindex ... \;

Good luck,

Ivan


-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Kralidis,Tom
[Burlington]
Sent: 14 June 2006 10:08
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] gdaltindex on numerous files

Hi,
 
I'm trying to create a MapServer tileindex via gdaltindex, where I would
like to store the absolute paths to each raster image in the output
tileindex.
 
Trying this gives me the following error:
 
$ gdaltindex srtm-index2 $PWD/*.tif
-bash: /usr/local/bin/gdaltindex: Argument list too long
 
Does gdaltindex take a filelist as an argument?  Trying:
 
 
$ gdaltindex srtm-index2 < some_file
$ gdaltindex srtm-index2 some_file
 
...didn't work.
 
Any advice would be much appreciated.
 
Thanks
 
..Tom
 

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list