Skip to content

API / geotoolkit / las / LasStreamParser / LasStreamParser

Class: LasStreamParser

las.LasStreamParser.LasStreamParser

LAS Stream based Parser. <br> This is the parent class of LAS parsers using a Stream paradigm.

Hierarchy

Table of contents

Constructors
  • [new LasStreamParser()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.las.lasstreamparser.lasstreamparser.md#new lasstreamparser())
Methods

Contents

Constructors

new LasStreamParser()

• new LasStreamParser()

Methods

getClassName

▸ getClassName(): string

Returns

string


getSectionGroups

▸ Abstract getSectionGroups(): void

Returns the LAS section groups

Returns

void


getSections

▸ Abstract getSections(): LasParameterSection[]

Returns the LAS sections

Returns

LasParameterSection[]


open

▸ Abstract open(fullload, success?, error?): Promise<LasStreamParser&gt;

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>

Parameters

Name Type Description
fullloadbooleanIf true, the stream will be fully read and parsed during its opening. (legacy mode)
Optional successCallbackA function called when the headers have been parsed and the stream is ready
Optional errorCallbackA function called if the header parsing failed

Returns

Promise<LasStreamParser&gt;

A promise fulfilled when the headers have been parsed and the stream is ready


getClassName

▸ Static getClassName(): string

Returns

string