Skip to content

Commit

Permalink
Much better rendering of float raster values
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Oct 7, 2024
1 parent 8fba934 commit ba0757b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/spatial-uploads-handler/src/rasterInfoForBands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ export async function rasterInfoForBands(
// Use factors of 10, e.g. 10, 100, 1000, etc.
// TODO: fix this in the future when you have a 0-1 float dataset to
// test
// while (range * (scale * 10) < 16777216) {
// scale *= 10;
// // break;
// }
while (range * (scale * 10) < 16777216) {
scale *= 10;
// break;
}
} else if (range > 16_777_216) {
// compress values to fit full encoding scheme
// Use factors of 10, e.g. 0.1, 0.01, 0.001, etc.
Expand Down

0 comments on commit ba0757b

Please sign in to comment.