Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COG Format #658

Open
adebardo opened this issue Feb 27, 2025 · 0 comments
Open

COG Format #658

adebardo opened this issue Feb 27, 2025 · 0 comments

Comments

@adebardo
Copy link

adebardo commented Feb 27, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant