[Gdal-dev] gdal_translation interpolation

Frank Warmerdam warmerdam at pobox.com
Sat Sep 20 21:02:23 EDT 2003


Reinaldo Escada Chohfi wrote:
> gdal users,
> 
> What's  the interpolation method used in gdal_translate
> when the size of the input dataset is changed with the
> -outsize flag?
> 
> Are there different interpolation methods that can be used?
> If yes, what are they and the flags to use?

Reinaldo,

gdal_translate uses the resampling done by the core RasterIO() code which is
nearest neighbour (simple replication or decimation).  If you need to
control resampling you could use gdalwarp which also offers bilinear,
and two cubic algorithms.

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