[Gdal-dev] gdaltindex on numerous files

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Wed Jun 14 10:32:51 EDT 2006


 
Ivan,
 
Thanks for the info.  This did the trick:
 
$ find $PWD -name "*.tif" -exec gdaltindex srtm-index3 {} \;
 
Thanks
 
..Tom

	-----Original Message----- 
	From: Ivan Lucena [mailto:ILucena at clarku.edu] 
	Sent: Wed 14-Jun-06 10:26 
	To: Kralidis,Tom [Burlington]; gdal-dev at lists.maptools.org 
	Cc: 
	Subject: RE: [Gdal-dev] gdaltindex on numerous files
	
	

	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