[Gdal-dev] Implementing GDALRasterBand::IRasterIO
Pushkar Pradhan
pushkar at GRI.MsState.Edu
Thu Jan 15 18:02:23 EST 2004
> int nXSize = poBand->GetXSize();
> int nYSize = poBand->GetYSize();
>
> float *pafData = (float *) CPLMalloc(sizeof(float)*nXSize*nYSize);
> poBand->RasterIO(GF_Read, 0, 0, nXSize, nYSize,
> pafData, nXSize, nYSize, GDT_Float32,
> 0, 0);
> A few misc. questions: Are band numbers indexed using a ones-based
> scheme? How about the n{X,Y}Offset parameters? From the docs it looks
> like ban numbers *do* use ones-based indexing, but I want to be sure.
> Same for the offsets.
More information about the Gdal-dev
mailing list