Skip to content

Commit

Permalink
v.surf.idw: fix applying mask (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed May 20, 2022
1 parent 70c84d9 commit 6514abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector/v.surf.idw/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ int main(int argc, char *argv[])
for (col = 0; col < window.cols; col++) {
east += window.ew_res;
/* don't interpolate outside of the mask */
if (mask && mask[col] == 0) {
if (mask && (mask[col] == 0 || Rast_is_c_null_value(&mask[col]))) {
Rast_set_d_null_value(&dcell[col], 1);
continue;
}
Expand Down

0 comments on commit 6514abf

Please sign in to comment.