Skip to content

Commit

Permalink
Squashed 'seims/src/ccgl/' changes from 7159f814..4aac4101
Browse files Browse the repository at this point in the history
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
  • Loading branch information
crazyzlj committed Dec 4, 2024
1 parent 1a2ab2b commit e677802
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data_raster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2225,6 +2225,7 @@ clsRasterData<T, MASK_T>::clsRasterData(clsRasterData<MASK_T>* 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<T>(mask_->GetNoDataValue());
UpdateStrHeader(options_, HEADER_RS_SRS, mask_->GetSrsString());
CopyStringMap(opts, options_);
}
Expand Down

0 comments on commit e677802

Please sign in to comment.