[gdal-dev] Change Resampling method

vvv jjj vvvjjj0 at yahoo.co.in
Thu Oct 15 11:47:41 EDT 2009


Dear Frank

Thanks for the swift response.

Viswanath.

--- On Thu, 15/10/09, Frank Warmerdam <warmerdam at pobox.com> wrote:

> From: Frank Warmerdam <warmerdam at pobox.com>
> Subject: Re: [gdal-dev] Change Resampling method
> To: "vvv jjj" <vvvjjj0 at yahoo.co.in>
> Cc: gdal-dev at lists.osgeo.org
> Date: Thursday, 15 October, 2009, 8:01 PM
> 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
> 
> 


      Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos


More information about the gdal-dev mailing list