[gdal-dev] Re: gdal_retile.py -r mode ?

Frank Warmerdam warmerdam at pobox.com
Fri Feb 27 13:33:20 EST 2009

Christian Müller wrote:
> The utility uses the python method gdal.ReprojectImage(....).
> As far as I see in http://www.gdal.org/gdalwarper_8h.html there is a new 
> Constant GRA_Lanczos for an interpolation method which is not supported 
> at the moment, but I see no constant for "mode" resampling.
> Perhaps we get a hint from an specialist.
> At the moment I see no possibility (but I could be wrong)


I do not believe that mode resampling is available via the warp api,
nor is it particularly conducive to such a resampling kernel since it
does not keep close track of which input pixels map to a particular
output pixel.  This is a surprisingly difficult thing to do when an
arbitrary spatial transformation is being applied.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list