@loaders.gl/las
Version:
Framework-independent loader for the LAS and LAZ formats
30 lines (29 loc) • 777 B
JavaScript
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
const VERSION = typeof "4.3.2" !== 'undefined' ? "4.3.2" : 'latest';
/**
* Loader for the LAS (LASer) point cloud format
* @note Does not support LAS v1.4
*/
export const LASLoader = {
dataType: null,
batchType: null,
name: 'LAS',
id: 'las',
module: 'las',
version: VERSION,
worker: true,
extensions: ['las', 'laz'], // LAZ is the "compressed" flavor of LAS,
mimeTypes: ['application/octet-stream'], // TODO - text version?
text: true,
binary: true,
tests: ['LAS'],
options: {
las: {
shape: 'mesh',
fp64: false,
skip: 1,
colorDepth: 8
}
}
};