logo       

Re: gdal_translation interpolation: msg#00114

gis.gdal.devel

Subject: Re: gdal_translation interpolation

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@xxxxxxxxx
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise