Skip to content

Commit 26f30be

Browse files
committed
trivial updates
1 parent e7b7b2b commit 26f30be

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

geowarp.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,6 @@ const geowarp = function geowarp({
530530

531531
if (should_skip(raw_values)) continue;
532532

533-
// apply band math expression, no-data mapping, and rounding when applicable
534-
const pixel = process({ pixel: raw_values });
535-
536533
const pixel_xmin = in_xmin + c * in_pixel_width;
537534
const pixel_xmax = pixel_xmin + in_pixel_width;
538535

@@ -551,6 +548,10 @@ const geowarp = function geowarp({
551548
raster_width: out_width_in_samples,
552549
geometry: pixel_geometry_in_out_srs
553550
};
551+
552+
// apply band math expression, no-data mapping, and rounding when applicable
553+
const pixel = process({ pixel: raw_values });
554+
554555
if (cutline) {
555556
intersect_options.per_pixel = ({ row, column }) => {
556557
if (segments_by_row[row].some(([start, end]) => column >= start && column <= end)) {

test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ const runTileTests = async ({
352352
"13,18,9",
353353
"14,22,9",
354354
"15,23,10",
355+
"16,22,11",
356+
"16,22,12",
357+
"16,22,13",
358+
"16,23,11",
359+
"16,23,12",
360+
"16,23,13",
355361
"16,24,11",
356362
"16,24,13",
357363
"17,25,12",

0 commit comments

Comments
 (0)