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

Warp fixes #545

Merged
merged 14 commits into from
Dec 10, 2023
Merged

Warp fixes #545

merged 14 commits into from
Dec 10, 2023

Conversation

rafaqz
Copy link
Owner

@rafaqz rafaqz commented Oct 23, 2023

This PR fixes bugs in warp and resample, and their docs. Closes #537 and closes #538.

This fix required some breaking changes, like, no longer automatically reversing the Y axis. I think it creates more trouble than its worth, like #502. So this also fixes #502 and fixes #384.

Unfortunately GDAL does a lot of its own reversing, shifting point locations and other weirdness in gdalwarp. So we have to hack around it quite a bit.

This PR also cleans up GDAL code a lot, standardising write, create and RasterDataset methods to use most of the same code, which should make problems like this easier to reason about in future.

@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (f5f3cfd) 80.56% compared to head (e38bc31) 80.83%.

Files Patch % Lines
ext/RastersArchGDALExt/gdal_source.jl 92.22% 7 Missing ⚠️
src/utils.jl 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #545      +/-   ##
==========================================
+ Coverage   80.56%   80.83%   +0.26%     
==========================================
  Files          57       57              
  Lines        4163     4174      +11     
==========================================
+ Hits         3354     3374      +20     
+ Misses        809      800       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rafaqz rafaqz merged commit 4bd523a into main Dec 10, 2023
10 of 11 checks passed
@rafaqz rafaqz deleted the warp_fixes branch December 21, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants