[FWTools] Shell Script for gdaladdo on a whole directory?
Jeff Ruby
jgr007 at gmail.com
Wed Feb 20 13:03:11 EST 2008
Put the following in a bat file and run it. It *should* work.
for /F %%f in ('dir *.tif') do gdaladdo --config USE_RRD YES "%%f" 3 9 27 81
To recursively search all sub-directories use:
for /F %%f in ('dir /s/b *.tif') do gdaladdo --config USE_RRD YES "%%f" 3 9
27 81
On Feb 20, 2008 12:50 PM, David Fawcett <david.fawcett at gmail.com> wrote:
> 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.
>
>
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20080220/9d458554/attachment.html
More information about the FWTools
mailing list