Forum

Author Topic: Cloud-optimized geotiff export  (Read 1866 times)

andyroo

  • Sr. Member
  • ****
  • Posts: 440
    • View Profile
Cloud-optimized geotiff export
« on: December 05, 2022, 08:21:02 AM »
I would love to be able to export DEMs and orthos with cloud-optimized geotiff (COG) format, specifying tile size, compression, predictor etc. We are using COGs to provide cloud-ready ortho and DEM data that can be queried or viewed without downloading an entire dataset (and tile servers such as TiTiler can digest and serve too).

As-is, it takes me MUCH  longer to convert the exported TIF than it does to create it. I would be very grateful if I could natively export COGs...

Currently I export geotiffs and convert using GDAL. For large geotiffs I batch-export in tiles (16384 x 16384) into <dest_dir>/{{chunklabel}/{chunklabel}.tif and convert like this:

for DIR in *; do gdalwarp "$DIR"/**.tif ./cog/"$DIR"_<projection>_cog.tif -of cog -overwrite -multi -wm 80% -co BLOCKSIZE=256 -co BIGTIFF=YES -co COMPRESS=DEFLATE -co PREDICTOR=YES -co NUM_THREADS=ALL_CPUS; done

Note this is basically a re-ask of my post from 2 years ago.

Andy