<div dir="auto">+1 <div dir="auto"><br></div><div dir="auto">If in doing so we could unlock resampling for reprojected rasters, woupidou.<div dir="auto"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 16, 2020, 04:46 Martin Dobias <<a href="mailto:wonder.sk@gmail.com">wonder.sk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
With the recent addition of contour renderer of rasters I have<br>
realized there are artifacts coming to the renderer from the earlier<br>
stages (the raster data provider mainly). Another issue is that raster<br>
resampling (nearest neighbor / bilinear / bicubic) is only applied at<br>
the end of raster processing pipeline (i.e. after the contour renderer<br>
has been run), which does not really help for contours to get smooth<br>
contour lines (rather one gets some pixelated blurry output).<br>
Moreover, hopefully I am not the only one seeing occasional subtle<br>
"jumps" of raster data when zooming/panning map, which I would account<br>
to some small math errors in the QGIS raster code.<br>
<br>
Looking at the GDAL raster data provider in QGIS, there's quite some<br>
code complexity, with copying of data between temporary buffers and<br>
dealing with limitations that existed in GDAL < 2.0 (e.g. non-integer<br>
source windows).<br>
<br>
I am wondering what people think about simplifying the QGIS raster pipeline:<br>
- get rid of the last stage of the pipeline - resampling - and make it<br>
responsibility of data providers (i.e. GDAL) to return resampled data<br>
- get rid of the reprojector stage of the pipeline - and again make it<br>
responsibility of data providers (i.e. GDAL) to return already warped<br>
data<br>
- any other raster data provider not being able to do it internally<br>
would just use GDAL routines<br>
<br>
My hope is that we could get rid of a lot of raster related code and<br>
at the same time use GDAL's optimized code even more. I am not saying<br>
I will be working on this anytime soon, but I would be interested to<br>
hear what others think about the current state of the raster pipeline<br>
:-)<br>
<br>
Cheers<br>
Martin<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>