Expansion of Warp API bindings
- [X] I agree to follow the project's code of conduct.
- [ ] I added an entry to
CHANGES.mdif knowledge of this change could be valuable to users.
- [x] Extract replicated methods in
*Optionstypes into macros. - [ ] Figure out why
warp::tests::test_create_reprojectfails on GDAL < 3.4 due to statistics seemingly not respecting no-data values.
Looks pretty good, but I only checked the first two commits.
I do wonder, though, if we shouldn't go straight for GDALWarp. It's not that much harder to use, and I think that mailing list reply suggested that it's the most powerful API.
I do wonder, though, if we shouldn't go straight for
GDALWarp. It's not that much harder to use, and I think that mailing list reply suggested that it's the most powerful API.
Good point. I'll research. At first glance it looked like it required a bunch more work, but maybe I jumped to conclusions there.
It's a lot of work to write the bindings for, it's similar to gdaldem.
Recently I've been experimenting with using gdal-sys to make calls to GDALWarp, which I've finally gotten running to my liking (besides the pesky MEM format..). But of course, only afterwards did I stumble across this PR
Anyway, getting GDALWarp implemented into the gdal crate would be a big win, IMO. So, if it helps, I would be happy to push this topic forward a bit with my learnings from the past few days? Please let me know :)