Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Jan 14, 2024
1 parent 811e2b8 commit 97f5b5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geowarp.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ const geowarp = function geowarp({

let raw_values = [];
if (leftSample >= in_width || rightSample < 0 || bottomSample < 0 || topSample >= in_height) {
raw_values = new Array(read_bands.length).fill(in_no_data);
raw_values = new Array(read_bands.length).fill(primary_in_no_data);
} else {
// clamp edges to prevent clipping outside bounds
leftSample = Math.max(0, leftSample);
Expand Down
4 changes: 3 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ test("reproject without clipping", async ({ eq }) => {
out_layout: "[band][row][column]",
out_srs,
forward,
inverse
inverse,
method: "median",
round: true
});

if (process.env.WRITE) {
Expand Down

0 comments on commit 97f5b5a

Please sign in to comment.