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

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to