[gdal-dev] raster resize

2010-10-15 Thread Giacomo Piva
Hi all, I would like to resize the dimension of a raster like the gdal_translate tool with "-outsize" option. I took a look into the gdal_translate.cpp source file but I didn't understand how it works, I can't find the resize operation lines. Does someone can help me to understand it? Thank y

Re: [gdal-dev] raster resize

2010-10-15 Thread Even Rouault
Selon Giacomo Piva : Giacomo, gdal_translate doesn't do the hard work itself and lets other part of GDAL do it. To be more precise, the resizing of the raster in the context of gdal_translate is done through the VRT driver (frmts/vrt/vrtsources.cpp). But if you want to do it yourself with GDAL AP

Re: [gdal-dev] raster resize

2010-10-15 Thread Giacomo Piva
Thank you Even, this solve my problem. On 10/15/2010 10:49 AM, Even Rouault wrote: Selon Giacomo Piva: Giacomo, gdal_translate doesn't do the hard work itself and lets other part of GDAL do it. To be more precise, the resizing of the raster in the context of gdal_translate is done through the