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

Christian Müller christian.mueller at nvoe.at
Fri Feb 27 14:12:29 EST 2009

Thanks for your answer. Another question, does it make sense to support the 
GRA_Lanczos interpolation method which has been introduced after I finished 

I would do a cvs checkout and send you the python file and the man page as 



Frank Warmerdam writes: 

> 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)
> Christian, 
> 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