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
  • Loading branch information
nyalldawson committed May 27, 2021
1 parent b4fea52 commit 50b2ac4
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 50b2ac4

Please sign in to comment.