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

fix(cogify): prevent empty tiffs from being stored #3018

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

blacha
Copy link
Member

@blacha blacha commented Nov 28, 2023

Motivation

As cogify does not have the exact bounding polygon of the data inside the tiff, there are occasions where a tiff is created outside the extent of the data. this tiff is empty and gdal will create a empty sparse tiff.

These tiffs are useless and should be ignored/deleted.

Modification

Check the output tiff to see if its empty before uploading it.

Checklist

If not applicable, provide explanation of why.

  • Tests updated
  • Docs updated
  • Issue linked in Title

@blacha blacha requested a review from a team as a code owner November 28, 2023 01:58
@blacha blacha added this pull request to the merge queue Dec 6, 2023
Merged via the queue into master with commit 971600f Dec 6, 2023
8 of 10 checks passed
@blacha blacha deleted the fix/prevent-empty-tiff branch December 6, 2023 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants