Re: [gdal-dev] help about the GDAL efficiency

2015-05-20 Thread Even Rouault
Xia Lang, > > > // create out file > eDT = GDALDataType(iBand1->GetRasterDataType()); > GDALDriver *hDriver = (GDALDriver *)GDALGetDriverByName( "GTiff" ); > CPLAssert( hDriver != NULL ); > hDstDS = (GDALDataset *)GDALCreate( hDriver, "G:\\data\\TM\\out.tif", > nPixels, nLines, GDALGetRaste

[gdal-dev] help about the GDAL efficiency

2015-05-19 Thread xialang2012
Hi, I used GDAL to reproject the TM images, and the original projection of the TM images was longitude/latitude WGS84, the final projection was UTM 51. The codes I used is as following: void doCore() { GDALDataType eDT; GDALDataset *hDstDS; GDALDataset *hSrcDS; GDALAllRegister(); // c