Skip to content

Instantly share code, notes, and snippets.

@Gustry
Created December 11, 2018 19:08
Show Gist options
  • Save Gustry/a538802f90ad8d1cc58d128b6ea128ab to your computer and use it in GitHub Desktop.
Save Gustry/a538802f90ad8d1cc58d128b6ea128ab to your computer and use it in GitHub Desktop.
raster tif
https://gis.stackexchange.com/questions/104453/why-result-of-merge-of-multiple-raster-is-so-big
for file in *.jp2; do
[ -e "$file" ] || continue
gdal_translate -of GTiff ${file} -co COMPRESS=JPEG -co bigtiff=yes ${file}.tiff
done
gdal_merge.py -ot Byte -of GTiff -o OUTPUT_block.tif -init "255 255 255" -co tiled=yes -co bigtiff=yes -co compress=jpeg --optfile /tmp/processing_3fad9415054b4e8fa4f0630b609149d9/mergeInputFiles.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment