Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heremaps/quantized-mesh-decoder
JavaScript decoder for the Quantized Mesh format
https://github.com/heremaps/quantized-mesh-decoder
3d cesiumjs quantized-mesh terrain
Last synced: 3 months ago
JSON representation
JavaScript decoder for the Quantized Mesh format
- Host: GitHub
- URL: https://github.com/heremaps/quantized-mesh-decoder
- Owner: heremaps
- License: mit
- Created: 2018-08-23T13:34:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T09:07:37.000Z (over 4 years ago)
- Last Synced: 2024-04-14T01:45:56.699Z (10 months ago)
- Topics: 3d, cesiumjs, quantized-mesh, terrain
- Language: JavaScript
- Homepage:
- Size: 259 KB
- Stars: 39
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
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.