April 24, 2013

GDAL strikes back...

I find myself working with GDAL tools with various projects from time to time and always I appreciate the people behind it.

Now some memo for myself:

Adding tiles to a geotiff with specific block size:
gdal_translate -co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=256 mytif.tif output.tif


Compressing a geotiff (use it if the raster source is imagery, not very suitable for elevation and other data)
gdal_translate -co COMPRESS=JPEG -co TILED=YES -co JPEG_QUALITY=85 mytif.tif output2.tif


Adding overlays from to a geotiff file (taken from here):
gdaladdo -r gauss --config PHOTOMETRIC_OVERVIEW YCBCR --config COMPRESS_OVERVIEW JPEG --config JPEG_QUALITY_OVERVIEW 85 output2.tif 2 4 8 16 32 64

No comments:

Post a Comment