Skip to content

Instantly share code, notes, and snippets.

@andybell
Created May 30, 2015 01:41
Show Gist options
  • Save andybell/39ed45b38c3f2694cd02 to your computer and use it in GitHub Desktop.
Save andybell/39ed45b38c3f2694cd02 to your computer and use it in GitHub Desktop.
Batch GDAL tif to geotif
#copies all tifs in a folder and saves them as compressed geotifs
mkdir geotifs
for file in *.tif
do
#gdal_translate
gdal_translate -of GTiff -co "COMPRESS=LZW" $file geotifs/$file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment