geoutils icon indicating copy to clipboard operation
geoutils copied to clipboard

COG Format

Open adebardo opened this issue 10 months ago • 0 comments

Context

In this ticket, we want to add the ability to save our images in the COG format. The COG (Cloud Optimized GeoTIFF) format is an extension of the GeoTIFF format, designed to be optimized for storage and access in the cloud.

Code

We need to modify the save function in raster.py within geoutils:

  • Handle the driver parameter in save when driver=COG
  • In this case, improve the management of the profile passed to rio.open:
{ "tiled": True, "blocksize": 512 }

Tests

Add this option and verify that when reopening the image, the metadata contains coherent values for tiled and compression.

Documentation

Add information about this in the documentation.

adebardo avatar Feb 27 '25 10:02 adebardo