Skip to content

Commit

Permalink
Fix incorrect handling of data type in grass raster data provider
Browse files Browse the repository at this point in the history
(cherry picked from commit 50b2ac4)
  • Loading branch information
nyalldawson committed May 31, 2021
1 parent 6151d9c commit f86cd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/grass/qgsgrassrasterprovider.cpp
Expand Up @@ -148,7 +148,7 @@ QgsGrassRasterProvider::QgsGrassRasterProvider( QString const &uri )
// We have to decide some reasonable block size, not to big to occupate too much
// memory, not too small to result in too many calls to readBlock -> qgis.d.rast
// for statistics
int typeSize = dataTypeSize( dataType( 1 ) );
int typeSize = QgsRasterBlock::typeSize( dataType( 1 ) );
if ( mCols > 0 && typeSize > 0 )
{
const int cache_size = 10000000; // ~ 10 MB
Expand Down

0 comments on commit f86cd28

Please sign in to comment.