Readonly
idAn auto-generated UUID used internally to create unique keys for various purposes.
Readonly
isLASSourceReadonly
isReadonly flag to indicate that his object implements MemoryUsage.
Readonly
isRead-only flag to indicate that this object is a PointCloudSource.
Readonly
typeGets or sets the dimension filters.
Gets whether the object is currently performing an asynchronous operation.
Returns the percentage of progress, in normalized value (i.e in the [0, 1] range), of the asynchronous operations that are scheduled to run on this object. 1 means that all operations have finished.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
The event that gets fired.
Gets the hierarchy of this point cloud.
Note: this does not provide point cloud data itself.
Returns an approximation of the memory used by this object, in bytes.
The graphics context.
Gets the metadata of this source.
Loads buffer data for the specific PointCloudNode.
Options.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Protected
initializeImplement by subclasses to initialize the source. This is automatically called by initialize.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
A source that reads from a LAS or LAZ file.
Note: if you wish to read Cloud Optimized Point Cloud (COPC) LAZ files, use the COPCSource instead.
LAZ decompression is done in background threads using workers. If you wish to disable workers (for a noticeable cost in performance), you can set LASSourceOptions.enableWorkers to
false
in constructor options.Note: this source uses the laz-perf package to perform decoding of point cloud data. This package uses WebAssembly. If you wish to override the path to the required .wasm file, use setLazPerfPath() before using this source. The default path is DEFAULT_LAZPERF_PATH.
Supported LAS version
This source supports LAS 1.2 and 1.4 only.
Decimation
This source supports decimation. By passing the LASSourceOptions.decimate argument to a value other than 1, every Nth point will be kept and other points will be discarded during read operations.
Dimensions filtering
This source supports filtering over dimensions (also known as attributes). By providing filters in the form of callback functions to apply to various dimensions, it is possible to eliminate points during reads. For example, it is possible to remove unwanted classifications such as noise from the output points.
Note that dimension filtering is independent from the selected attribute. In other words, it is possible to select the dimension
"Intensity"
, while filtering on dimensions"Classification"
and"ReturnNumber"
for example.For example, if we wish to remove all points that have the dimension "High noise" (dimension 18 in the ASPRS classification list), as well as removing all points whose intensity is lower than 1000: