[FWTools] batch gdal_translate ??
mateusz at loskot.net
Wed Jul 30 12:36:28 EDT 2008
Garret Wais wrote:
> I would like to create a bat file for gdal_translate. I have about one
> thousand sid files that I would like to convert to jpg, I know I can
> use, "gdal_translate -of JPEG FILENAME.sid OUTPUT.jpg" to do this but
> doing that 1000 X's would not be efficient (or fun).
> I know there is a way to write something like:
> for file in *
> do input=`echo $file
> etc etc.
> I just cant remember exactly how it should be written. If anyone can
> help that would be great.
Something like this:
for file in *.sid
gdal_translate -f JPEG $f.sid $f_out.jpg
This should help as well:
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the FWTools