[gdal-dev] raster resize

Giacomo Piva piva at meeo.it
Fri Oct 15 05:09:15 EDT 2010


  Thank you Even, this solve my problem.

On 10/15/2010 10:49 AM, Even Rouault wrote:
> Selon Giacomo Piva<piva at meeo.it>:
>
> 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 API, the best is to use the GDALRasterIO()
> function directly by specifying dimensions of output buffer that are different
> than the dimensions of the source window (this will do nearest neighbour
> resampling).
>
>
>>    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 you.
>>
>> --
>> Giacomo
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
>


-- 
Giacomo Piva

MEEO S.r.l.
Via Saragat 9
I-44122 Ferrara, Italy
Tel: +39 0532 1861501
Fax: +39 0532 1861637
http://www.meeo.it

========================================
"ATTENZIONE:le informazioni contenute in questo messaggio sono
da considerarsi confidenziali ed il loro utilizzo è riservato unicamente
al destinatario sopra indicato. Chi dovesse ricevere questo messaggio
per errore è tenuto ad informare il mittente ed a rimuoverlo
definitivamente da ogni supporto elettronico o cartaceo."

"WARNING:This message contains confidential and/or proprietary
information which may be subject to privilege or immunity and which
is intended for use of its addressee only. Should you receive this
message in error, you are kindly requested to inform the sender and
to definitively remove it from any paper or electronic format."



More information about the gdal-dev mailing list