[gdal-dev] using GDALCreateCopy and changing only the datatype

Yann Chemin yann.chemin at gmail.com
Mon Nov 24 08:10:10 EST 2008


Hello,

I would like to use GDALCreateCopy and change the datatype from int32
to float32.

        GDALDatasetH hDatasetOut0;
        hDatasetOut0 = GDALCreateCopy( hDriver1, ndviF,
                                hDataset1,FALSE,NULL,NULL,NULL);
        GDALRasterBandH hBandOut0;
        hBandOut0 = GDALGetRasterBand(hDatasetOut0,1);

thanks,
Yann

-- 
Yann Chemin
International Rice Research Institute
Office: http://www.irri.org/gis
Perso: http://www.freewebs.com/ychemin
YiKingDo: http://yikingdo.unblog.fr/


More information about the gdal-dev mailing list