geoutils
geoutils copied to clipboard
COG Format
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.