[gdal-dev] Change Resampling method
Frank Warmerdam
warmerdam at pobox.com
Thu Oct 15 10:31:46 EDT 2009
vvv jjj wrote:
> Hi
>
> I'm trying to read raster file (simple Tiff) raster data using RasterIO and
> display the raster data without creating another dataset. By default GDAL
> uses nearest neighbor resampling algorithm. I would like to use other
> resampling methods (lanscoz). I do not need to write in a new file (no
> hDstDS object is present) as I just need to display the resample data. Is it
> possible to change the resampling method without creating another dataset to
> read the raster data.
Viswanath,
The RasterIO() method offers no mechanism to control the resampling. The
only way to get advanced resampling options is to use the warp api in
which case you would need a destination dataset even if it is just a
memory buffer wrapped as a dataset (using the MEM driver for instance).
This gets rather involved!
Alternatively you could read the data at full resolution and apply the
resampling yourself.
> Pls let me know if I missed anything or posted in a wrong form, as I'm new
> to GDAL. Thanks in Advance.
This is the right place, and welcome.
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