void QgsRasterIterator::startRasterRead( int bandNumber, int nCols, int nRows, const QgsRectangle& extent ) { if ( !mInput ) { return; } mExtent = extent; //remove any previous part on that band removePartInfo( bandNumber ); //split raster into small portions if necessary RasterPartInfo pInfo; pInfo.nCols = nCols; pInfo.nRows = nRows; pInfo.currentCol = 0; pInfo.currentRow = 0; pInfo.prj = nullptr; mRasterPartInfos.insert( bandNumber, pInfo ); }
void QgsRasterIterator::stopRasterRead( int bandNumber ) { removePartInfo( bandNumber ); }