Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing the list of available warp names.
gdal.WarpOptions in GDAL < 3.4 did not handle all supported gdal.GRA_* resampling options, instead using the incomplete set of options under gdal.GRIORA_*. This was fixed in GDAL 3.4. The change introduced in this commit handles both approaches to interpreting the resample algorithm names available with this rough algorithm: 1. If gdal.WarpOptions() handles the name, use that. 2. Otherwise (if the name is unknown because of the gdal.GRIORA_* issue or if a shorthand is used instead, like '-rb' instead of '-r bilinear'), interpret the name from the GRA_* attribute name. Testing this solution on my computer works on GDAL < 3.4 (3.3 tested) and also on GDAL >= 3.4 (3.7 tested). RE:natcap#326
- Loading branch information