geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
878 stars 183 forks source link

Support for LERC compression #205

Closed zakjan closed 3 years ago

zakjan commented 3 years ago

GDAL supports LERC compression, which helps to reduce file size of raster float data. There is MAX_Z_ERROR config to optimize file size vs. data precision.

For adding support of LERC compression into geotiff.js, can lerc library be added as a direct dependency similarly to deflate from pako?

zakjan commented 3 years ago

Relates to the recent moving of LERC support from GDAL internal libtiff to external libtiff https://github.com/OSGeo/gdal/pull/3565 https://gitlab.com/libtiff/libtiff/-/merge_requests/228 https://github.com/conda-forge/gdal-feedstock/issues/381

constantinius commented 3 years ago

That definitely sounds interesting. Would you maybe be willing to try this out and provide a PR?

zakjan commented 3 years ago

@constantinius Sure, here it is #206