Skip to content
Permalink
Browse files
Disable block in raster provider for performance reason
  • Loading branch information
mhugent committed Dec 9, 2012
1 parent ea4e77a commit daa02e3
Showing 1 changed file with 3 additions and 0 deletions.
@@ -90,6 +90,7 @@ QgsRasterBlock * QgsRasterDataProvider::block( int theBandNo, QgsRectangle cons
tmpYRes = yRes;
}

#if 0 //disable for performance reason
if ( tmpExtent != theExtent ||
tmpXRes > xRes || tmpYRes > yRes )
{
@@ -191,6 +192,8 @@ QgsRasterBlock * QgsRasterDataProvider::block( int theBandNo, QgsRectangle cons
{
readBlock( theBandNo, theExtent, theWidth, theHeight, block->data() );
}
#endif //0
readBlock( theBandNo, theExtent, theWidth, theHeight, block->data() );

// apply user no data values
// TODO: there are other readBlock methods where no data are not applied

0 comments on commit daa02e3

Please sign in to comment.