Skip to content
Permalink
Browse files
Fix incorrect handling of data type in grass raster data provider
  • Loading branch information
nyalldawson committed May 27, 2021
1 parent b4fea52 commit 50b2ac4c89a669cf08b5db81f62a4f3cf88fc495
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 50b2ac4

Please sign in to comment.