Hi Dmitry
I was inspecting various GDAL sources
(http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts). I was bit confused
how to implement RasterIO method. Which format to look for better idea.
Should i call IRasterIO() method in IReadBlock?
/CPLErr RBDRasterBand::IReadBlock( int nBlockXOff, int nBlockYOff, void *
pImage )
{
return IRasterIO( GF_Read, nBlockXOff, nBlockYOff, nBlockXSize,
nBlockYSize,
pImage, nBlockXSize, nBlockYSize, eDataType,
GDALGetDataTypeSize(eDataType)/8, 0 );
}/
/CPLErr RBDRasterBand::IRasterIO( GDALRWFlag eRWFlag,
int nBlockXOff, int nBlockYOff, int
nXSize, int nYSize,
void * pData, int nBufXSize, int
nBufYSize,
GDALDataType eBufType,
int nPixelSpace, int nLineSpace )
{
//my logic
}/
Earlier we were using ERDAS method to get the handle
/long LayerRasterRead( void *lHandle, unsigned long bRow, unsigned long
bCol,
unsigned char **pixels )
{
//logic
}/
Is there any method similar to get the handle in GDAL?
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Overviews-using-GDAL-tp5022226p5024588.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev