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

David Fawcett david.fawcett at gmail.com
Wed Feb 20 13:37:59 EST 2008


Thanks all for the quick and detailed responses!

On Wed, Feb 20, 2008 at 12:13 PM, Ed McNierney <ed at topozone.com> wrote:

>  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/25469af1/attachment-0001.html


More information about the FWTools mailing list