Created
December 11, 2018 19:08
-
-
Save Gustry/a538802f90ad8d1cc58d128b6ea128ab to your computer and use it in GitHub Desktop.
raster tif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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