open-index/open-npm huggingface dataset:
npm package: @here/quantized-mesh-decoder
Description: Decoder for the Quantized Mesh 1.0 format
Author: HERE Europe B.V.
Latest version: 1.2.8

Quantized Mesh Decoder
===========================================

JavaScript decoder for the [Quantized Mesh format](https://github.com/AnalyticalGraphicsInc/quantized-mesh).

Note: This is experimental code, expect changes. 

## Installation

### In Node.js

The module is installable via yarn (or npm):

```sh
yarn add @here/quantized-mesh-decoder
```

```sh
npm install @here/quantized-mesh-decoder
```

### API Reference

```javascript
import decode from '@here/quantized-mesh-decoder'

decode(buffer, options)
```

* buffer: [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
* options: [DecoderOptions](#decoderoptions)

##### DecoderOptions

* maxDecodingStep: Number  
  Limits how deep decoder should go.  Takes of the properties of the `DECODING_STEPS` map. See `import { DECODING_STEPS } from '@here/quantized-mesh-decoder' `.   
  Default: `DECODING_STEPS.extensions`.


### Links

* [Quantized Mesh Specification](https://github.com/AnalyticalGraphicsInc/quantized-mesh)
* [Quantized Mesh Viewer](https://github.com/heremaps/quantized-mesh-viewer)
* [TIN Terrain](https://github.com/heremaps/tin-terrain) — tool that generates Quantized Mesh tiles out of GeoTIFF

### Sample Tiles Attribution

- `./src/assets/tile-with-extensions.terrain`: [Cesium World Terrain from Cesium ion](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Terrain.html)
- `./src/assets/tile-opentin.terrain`: [Open data](ftp://geoftp.ibge.gov.br//modelos_digitais_de_superficie/modelo_digital_de_elevacao_mde/rj25/tif/mde_27453ne_v1.zip) from brazilian government [IBGE](https://ww2.ibge.gov.br/english/), processed using [TIN Terrain](https://github.com/heremaps/tin-terrain)

### License

Copyright (C) 2018-2019 HERE Europe B.V.

See the [LICENSE](LICENSE) file in the root of this project for license details.