mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fixes #36820 The way QGIS is currently handling resampling is sub-optimal given GDAL >= 2 capability of having sub-pixel accuracy. So when a QgsRasterResampleFilter is set, make it try to delegate resampling back to the underlying input interface, and implement that improved resampling in the GDAL provider. The GDAL resampling will take into account the settings of the QGIS resample filter: zoom-in resampling kernel, zoom-out resampling kernel and max resampling factor. The later is important to avoid performance issues if not enough overview levels are generated (in the case, we will fallback to the generic method, which may introduce sub-pixel shifts)