[Qgis-developer] Raster resampling

Tim Sutton lists at linfiniti.com
Tue Jan 10 04:29:03 EST 2012


Hi

On Fri, Dec 30, 2011 at 3:58 PM, Marco Hugentobler
<marco.hugentobler at sourcepole.ch> wrote:
> Hi devs,
>
> Recently, I've been working on adding raster resampling to QGIS raster
> (http://www.sourcepole.com/raster-resampling-in-qgis). The changes are in
> the branch 'raster_resampler' of my github clone
> (git://github.com/mhugent/Quantum-GIS.git).
>
> To add resampling in a clean way, I started a bit of refactoring within
> QgsRasterLayer:
>
> - The new abstract class QgsRasterRenderer is added to replace the
> drawingType switch. The method QgsRasterRenderer::draw() is a replacement
> for the methods drawMultiBandColor(), drawMultiBandSingleBandGray(),
> drawPalettedSingleBandColor(). This should move a lot of code out of
> QgsRasterLayer and reduce code complexity. Currently implemented are
> QgsPallettedRasterRenderer, QgsMultibandColorRenderer,
> QgsSingleBandGrayRenderer
> - The functionality of QgsRasterBuffer to draw the raster layer in several
> parts is moved to QgsRasterRenderer base class (same idea of reducing
> complexity in QgsRasterLayer).
> - QgsRasterResampler has two subclasses for now, QgsBilinearRasterResampler
> and QgsCubicRasterResampler (maybe average would be useful as well?)
>
> Any objections or suggestions about this? The code in the branch is mostly
> working, but far from being complete.
> I'm going to be without internet connection the next few days, but hope to
> get the code to a testable state soon.
>
> Regards,
> Marco
>

Great stuff Marco - I hope to test your changes soon.

Regards

Tim

>
> --
> Dr. Marco Hugentobler
> Sourcepole -  Linux&  Open Source Solutions
> Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
> marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
> Technical Advisor QGIS Project Steering Committee
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list