[FWTools] Shell Script for gdaladdo on a whole directory?

Ed McNierney ed at topozone.com
Wed Feb 20 13:13:52 EST 2008


David -

 

for %f in (*.jpg) do gdaladdo -config USG_RRD YES %f 3 9 27 81

 

-          Ed

 

From: fwtools-bounces at lists.maptools.org
[mailto:fwtools-bounces at lists.maptools.org] On Behalf Of David Fawcett
Sent: Wednesday, February 20, 2008 12:50 PM
To: fwtools at lists.maptools.org
Subject: [FWTools] Shell Script for gdaladdo on a whole directory?

 

I want to run gdaladdo on approx. 500 images all sitting in the same
directory.  

I have tried the command 

D:\TestGisData\>gdaladdo --config USE_RRD YES *.jpg 3 9 27 81

and I get the error: 

ERROR 6: The JPEG driver does not support update access to existing
datasets.

ERROR 1: Attempt to extend field string in node past end of data,
not currently supported.
Overview building failed.

Since the command D:\TestGisData>gdaladdo --config USE_RRD YES 01.jpg 3
9 27 81

ERROR 6: The JPEG driver does not support update access to existing
datasets.

0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.

works, I assume that there isn't a 'wildcard mode' and that I will need
to write a dos shell script to do a batch run.  

Can anyone point me to an example of a script like this?  I did a lot of
searching, but couldn't find anything.  

Thanks, 

David.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20080220/0e408ef1/attachment.html


More information about the FWTools mailing list