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 daa02e3e97e18bd4c0be8446a8aa763f648ce06b
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/raster/qgsrasterdataprovider.cpp
@@ -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.