Skip to content

Commit 9e82df8

Browse files
committedApr 10, 2013
gdal set output no data fix
1 parent 4e5c660 commit 9e82df8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/gdal/qgsgdalprovider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,9 @@ bool QgsGdalProvider::setNoDataValue( int bandNo, double noDataValue )
25292529
QgsDebugMsg( "Cannot set no data value" );
25302530
return false;
25312531
}
2532+
mSrcNoDataValue[bandNo-1] = noDataValue;
2533+
mSrcHasNoDataValue[bandNo-1] = true;
2534+
mUseSrcNoDataValue[bandNo-1] = true;
25322535
return true;
25332536
}
25342537

0 commit comments

Comments
 (0)
Please sign in to comment.