Skip to content

Commit

Permalink
Fix encoding of categorical raster data when band interpretation meta…
Browse files Browse the repository at this point in the history
…data indicates grayscale
  • Loading branch information
underbluewaters committed Nov 12, 2024
1 parent 67e66cf commit 0c9a198
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/spatial-uploads-handler/src/processRasterUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,12 @@ async function encodeValuesToRGB(
)
`,
"temp_b.tif": `
(
floor(
floor(
(
(A - ${base}) * ${1 / interval}
) + 32768.0
) % 256
+ 32768.0
) % 256
)
`,
};

Expand Down

0 comments on commit 0c9a198

Please sign in to comment.