Skip to content

Commit

Permalink
fix issue #28 caused by improper initialisation of heightfield raster
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylannl committed Dec 2, 2020
1 parent ed3264d commit 9ba711d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace RasterTools {
if (a==MIN)
noDataVal_ = std::numeric_limits<float>::max();
else
noDataVal_ = std::numeric_limits<float>::min();
noDataVal_ = -std::numeric_limits<float>::max();

std::fill(vals_->begin(), vals_->end(), noDataVal_);
// std::fill(counts_->begin(), counts_->end(), 0);
Expand Down

0 comments on commit 9ba711d

Please sign in to comment.