itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
43 lines (42 loc) • 1.23 kB
TypeScript
export default CopcLayer;
/**
* A layer for [Cloud Optimised Point Cloud](https://copc.io) (COPC) datasets.
* See {@link PointCloudLayer} class for documentation on base properties.
*
* @extends {PointCloudLayer}
*
* @example
* // Create a new COPC layer
* const copcSource = new CopcSource({
* url: 'https://s3.amazonaws.com/hobu-lidar/autzen-classified.copc.laz',
* crs: 'EPSG:4978',
* colorDepth: 16, // bit-depth of 'color' attribute (either 8 or 16 bits)
* });
*
* const copcLayer = new CopcLayer('COPC', {
* source: copcSource,
* });
*
* View.prototype.addLayer.call(view, copcLayer);
*/
declare class CopcLayer extends PointCloudLayer {
/**
* @param {string} id - Unique id of the layer.
* @param {Object} config - See {@link PointCloudLayer} for base pointcloud
* options.
*/
constructor(id: string, config: Object);
/**
* @type {boolean}
* @readonly
*/
readonly isCopcLayer: boolean;
whenReady: Promise<any>;
spacing: any;
minElevationRange: any;
maxElevationRange: any;
scale: THREE.Vector3;
offset: THREE.Vector3;
}
import PointCloudLayer from '../Layer/PointCloudLayer';
import * as THREE from 'three';