Skip to content
Permalink
Browse files
Fix incorrect handling of data type in grass raster data provider
(cherry picked from commit 50b2ac4)
  • Loading branch information
nyalldawson committed Jun 14, 2021
1 parent da444ce commit eec4dc5695cde645f09b5c620818926c49cf0207
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/grass/qgsgrassrasterprovider.cpp
@@ -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

0 comments on commit eec4dc5

Please sign in to comment.