API / geotoolkit / welllog / data / las / LasStreamParser / LasStreamParser
las.LasStreamParser.LasStreamParser
LAS Stream based Parser. <br> This is the parent class of LAS parsers using a Stream paradigm.
↳
LasStreamParser
Constructors
- [new LasStreamParser()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.welllog.data-4.las.lasstreamparser.lasstreamparser.md#new lasstreamparser())
Methods
▸ getClassName(): string
string
▸ Abstract getSectionGroups(): void
Returns the LAS section groups
void
LasStreamParser.getSectionGroups
▸ Abstract getSections(): LasParameterSection[]
Returns the LAS sections
▸ Abstract open(fullload, success?, error?): Promise<LasStreamParser>
Opens the LAS stream and parse its headers.<br> <br> The stream can also be opened in 'legacy mode' in order to be accessed like a non-stream based parser.<br> However this is discouraged as it can lead to memory issues for huge datasets.<br> <br> Note that, for convenience, this function returns a Promise AND accepts callbacks (that do not contribute to the returned promise).<br> One is free to use either the Promise or the callback to be 'notified' when the stream is ready.<br>
| 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