Skip to content

Commit

Permalink
Use geotiff fork with lzw-tiff-decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Sep 8, 2020
1 parent 603e5e0 commit db4d800
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@luma.gl/core": "^8.2.0",
"@luma.gl/shadertools": "^8.2.0",
"fast-xml-parser": "^3.16.0",
"geotiff": "ilan-gold/geotiff.js#ilan-gold/string_fix",
"geotiff": "manzt/geotiff.js#lzw",
"quickselect": "^2.0.0",
"zarr": "^0.3.0"
}
Expand Down
4 changes: 2 additions & 2 deletions src/loaders/viv.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import { getTiffDecoder } from './decoder';

function decode(self, fileDirectory, buffer) {
async function decode(self, fileDirectory, buffer) {
const decoder = getTiffDecoder(fileDirectory);
const result = decoder.decode(fileDirectory, buffer);
const result = await decoder.decode(fileDirectory, buffer);
self.postMessage([result], [result]);
}

Expand Down

0 comments on commit db4d800

Please sign in to comment.