Skip to content

Commit

Permalink
More accurate CONTINOUS_RASTER color maps
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Oct 7, 2024
1 parent fec6b3c commit 8fba934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/spatialUploads/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ async function getStyle(
) {
const band = geostats.bands[0]!;
let rasterColorMix = [
["*", 255, 65536],
["*", 255, 256],
255,
["*", 258, 65536],
["*", 258, 256],
258,
["+", -32768, band.base],
] as any;
if (band.interval && band.interval !== 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ export function convertToVisualizationType(
if (isRasterInfo(geostats)) {
const band = geostats.bands[0]!;
let rasterColorMix = [
["*", 255, 65536],
["*", 255, 256],
255,
["*", 258, 65536],
["*", 258, 256],
258,
["+", -32768, band.base],
] as any;
if (band.interval && band.interval !== 1) {
Expand Down

0 comments on commit 8fba934

Please sign in to comment.