Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lerc

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lerc - npm Package Versions

4.0.4

Diff

wjugis
published 4.0.3 •

wjugis
published 4.0.2 •

wjugis
published 4.0.1 •

wjugis
published 4.0.0 •

Changelog

Source

4.0.0 - 2022-07-15

Milestones reached

  • Incremented Lerc version to 4.0 as the new, wasm based JavaScript decoder may not work on older browsers such as IE.
  • Incremented Lerc version to 3.1. All existing 3.0 functions work same as before.
  • Incremented Lerc codec version to v2.6.
  • This LERC API and all language decoders (C++, C, C#, Python, JavaScript) and encoders (C++, C, Python) are now in sync with ESRI ArcGIS Pro 3.0.

Added

  • New, additional LERC API functions *_4D(). Main reason for this upgrade is to support special cases of void or invalid data not supported yet. For 3D or 4D data with an array of values per pixel, and some of such values valid and others invalid, the new functions allow to pass one noData value per band to represent such "mixed cases". There is no change to the valid / invalid byte masks that mark each pixel as valid or invalid. There can be one mask per band, one mask for all bands, or no mask. For more details see the Readme.md, Lerc_c_api.h, and Lerc_ByteStream_Specification.pdf, in increasing level of detail. Main.cpp has some sample calls.

  • New lossless compression for data types float and double.

  • Support for large integers > 32 bit up to 53 bit. Pass them as double.

  • Renamed nDim to nDepth, the size of the array per pixel.

  • New #define ENCODE_VERIFY in Defines.h. If enabled, Lerc, as an added last step in encode, will decode the compressed blob again and compare it against the input data.

  • Using Emscripten, we compiled the Lerc C++ code into web assembly, resulting in a new JS Lerc decoder. From now on, updates to the Lerc C++ code will be converted to JS automatically.

  • Added a new function to the LERC API called 'lerc_getDataRanges(...)'. It allows fast access to the data ranges in a compressed Lerc blob without having to decode it. It returns 2 double arrays with the minimum and maximum values per band and depth.

Fixed

  • The older Lerc codec v2.2 (used around 2016) required 3 extra padding bytes at the end of the Lerc blob. If those padding bytes are missing, Lerc decode could fail. With this fix, decode works on such v2.2 Lerc blobs with missing padding bytes.
wjugis
published 3.0.0 •

esri_dev
published 2.0.0 •

esri_dev
published 1.0.1 •

esri_dev
published 1.0.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc