[Gdal-dev] gdal_translate Resampling?
Frank Warmerdam
warmerdam at pobox.com
Mon Feb 6 14:59:02 EST 2006
On 2/6/06, Matt Wilkie <matt.wilkie at gov.yk.ca> wrote:
> 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.
> http://gdal.maptools.org/frmt_usgsdem.html
>
> Note: don't use Cubic or CubicSpline with images possessing nodata as
> the nodata is interpolated (Bug:793)
> http://bugzilla.remotesensing.org/show_bug.cgi?id=793
Chris,
Note the above is very specific to the USGSDEM writer.
Generally speaking nearest neighbour resampling is
always used by gdal_translate.
If you want to control resampling you should use gdalwarp.
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