API / geotoolkit / las / LasStreamParser / LasStreamParser
las.LasStreamParser.LasStreamParser
LAS Stream based Parser.
This is the parent class of LAS parsers using a Stream paradigm.
LasStreamParser
Constructors
Methods
▸ getClassName(): string
string
▸ Abstract getSectionGroups(): void
Returns the LAS section groups
void
▸ Abstract getSections(): LasParameterSection[]
Returns the LAS sections
▸ Abstract open(fullload, success?, error?): Promise<LasStreamParser>
Opens the LAS stream and parse its headers.
The stream can also be opened in 'legacy mode' in order to be accessed like a non-stream based parser.
However this is discouraged as it can lead to memory issues for huge datasets.
Note that, for convenience, this function returns a Promise AND accepts callbacks (that do not contribute to the returned promise).
One is free to use either the Promise or the callback to be 'notified' when the stream is ready.
| Name | Type | Description |
|---|---|---|
fullload | boolean | If true, the stream will be fully read and parsed during its opening. (legacy mode) |
Optional success | Callback | A function called when the headers have been parsed and the stream is ready |
Optional error | Callback | A function called if the header parsing failed |
Promise<LasStreamParser>
A promise fulfilled when the headers have been parsed and the stream is ready
▸ Static getClassName(): string
string