Skip to content

Commit 97f5b5a

Browse files
committed
fixed typo
1 parent 811e2b8 commit 97f5b5a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

geowarp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ const geowarp = function geowarp({
918918

919919
let raw_values = [];
920920
if (leftSample >= in_width || rightSample < 0 || bottomSample < 0 || topSample >= in_height) {
921-
raw_values = new Array(read_bands.length).fill(in_no_data);
921+
raw_values = new Array(read_bands.length).fill(primary_in_no_data);
922922
} else {
923923
// clamp edges to prevent clipping outside bounds
924924
leftSample = Math.max(0, leftSample);

test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ test("reproject without clipping", async ({ eq }) => {
106106
out_layout: "[band][row][column]",
107107
out_srs,
108108
forward,
109-
inverse
109+
inverse,
110+
method: "median",
111+
round: true
110112
});
111113

112114
if (process.env.WRITE) {

0 commit comments

Comments
 (0)