Last updated

API / geotoolkit / las / LasStreamParser / LasStreamParser

Class: LasStreamParser

las.LasStreamParser.LasStreamParser

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

Hierarchy

Table of contents

Constructors
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>

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.

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>

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


getClassName

Static getClassName(): string

Returns

string