Skip to content

Commit

Permalink
Disable block in raster provider for performance reason
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 9, 2012
1 parent ea4e77a commit daa02e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/raster/qgsrasterdataprovider.cpp
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit daa02e3

Please sign in to comment.