I have a huge set of compressed GeoTIFF files. Someone forgot to set the projection while creating the GeoTIFF files and I would like to add it now.
If I use
gdalwarp -t_srs source.tif target.tif
the result is an uncompressed file. I would like to avoid the (de)compressing if possible, since I expect it will degrade the final result due to the recompression and because it will require more time to decompress and compress each file again.
I assume that the projection information is stored in the header.
Is there an easy way to just update the projection information in a GeoTIFF file?