Awesome
Quantized Mesh Decoder
JavaScript decoder for the Quantized Mesh format.
Note: This is experimental code, expect changes.
Installation
In Node.js
The module is installable via yarn (or npm):
yarn add @here/quantized-mesh-decoder
npm install @here/quantized-mesh-decoder
API Reference
import decode from '@here/quantized-mesh-decoder'
decode(buffer, options)
- buffer: ArrayBuffer
- options: DecoderOptions
DecoderOptions
- maxDecodingStep: Number
Limits how deep decoder should go. Takes of the properties of theDECODING_STEPS
map. Seeimport { DECODING_STEPS } from '@here/quantized-mesh-decoder'
.
Default:DECODING_STEPS.extensions
.
Links
- Quantized Mesh Specification
- Quantized Mesh Viewer
- 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./src/assets/tile-opentin.terrain
: Open data from brazilian government IBGE, processed using TIN Terrain
License
Copyright (C) 2018-2019 HERE Europe B.V.
See the LICENSE file in the root of this project for license details.