Re: [Qgis-developer] Raster resampling suggestion

2014-02-18 Thread Marco Hugentobler
Hi Nick Resampling on data level does not work in case of colormap rasters, therefore the resampling filter currently comes after assigning rgba. One possibility would be to provide a user choice if resampling should be done on color values or on data. I think it is best if you post your

Re: [Qgis-developer] Raster resampling suggestion

2014-02-18 Thread Nick Dolezal
Hey Marco, Here's the code I have for a bilinear-based implementation (attached), though I've omitted the actual NN and bilinear resampling code itself for brevity. This does have a number of implementation-specific assumptions which would need to be reworked for the general case. (the general