From e67780265e0a476389d1724d31fa5b4dd57fb1c4 Mon Sep 17 00:00:00 2001 From: Liang-Jun Zhu Date: Wed, 4 Dec 2024 09:48:42 +0800 Subject: [PATCH] Squashed 'seims/src/ccgl/' changes from 7159f814..4aac4101 4aac4101 Merge pull request #17 from crazyzlj/bug/setnodata_after_copyheader 7cbcba25 bug fixed: set nodata after copyheader git-subtree-dir: seims/src/ccgl git-subtree-split: 4aac4101463ee3d0c52dab131f973517c86fe9d1 --- src/data_raster.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data_raster.hpp b/src/data_raster.hpp index af6d9df6c..6d9218c9a 100644 --- a/src/data_raster.hpp +++ b/src/data_raster.hpp @@ -2225,6 +2225,7 @@ clsRasterData::clsRasterData(clsRasterData* mask, T* const va Initialize1DArray(n_cells_, raster_, values); // DO NOT ASSIGN ARRAY DIRECTLY! default_value_ = mask_->GetDefaultValue(); CopyHeader(mask_->GetRasterHeader(), headers_); + no_data_value_ = static_cast(mask_->GetNoDataValue()); UpdateStrHeader(options_, HEADER_RS_SRS, mask_->GetSrsString()); CopyStringMap(opts, options_); }