[Gdal-dev] gdal_translate Resampling?

Matt Wilkie matt.wilkie at gov.yk.ca
Mon Feb 6 13:21:59 EST 2006

Chris Hodgson wrote:
> Is there a way to specify what kind of resampling gdal_translate should 
> use? It doesn't seem to be a parameter, yet it does do resampling as 
> necessary... seems like the option is missing.

	gdal_translate -co "Resample=Bilinear" ...

The options are 'Nearest, Bilinear, Cubic, CubicSpline' when the output 
is USGS-DEM/CDED. The docs say "Only has an effect when particular 
products like CDED50K are being produced. Defaults to Bilinear." But 
doesn't go on to say what the other formats might use the same option.

Note: don't use Cubic or CubicSpline with images possessing nodata as 
the nodata is interpolated (Bug:793)


matt wilkie
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax

More information about the Gdal-dev mailing list