Ensure correct footprints and tasks for pre-COGs #5627
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Sometimes we need to COGify images on our own, but other times, they're pre-COGs:
When we have COGs already, we don't need to do work to turn the image into a COG. However, we do need to do work to make sure some metadata is correct. In particular, for EPSG:4326 COGs, we were doing a bad job at task side length calculation, and then when I fixed that, we were doing a bad job at footprint calculation.
This PR makes it so that:
Checklist
Demo
For my local copy of a poison tiff:
Here's the log stream for trying to process the same tif in staging. You can see that 24 minutes in it dies with some kind of SQL error.
Testing Instructions
docker-compose build batch
./sbt ';api/assembly;backsplash-server/assembly;batch/assembly'
./scripts/server
./scripts/process-upload <your id>
Closes azavea/raster-foundry-platform#1328