Last updated

API / geotoolkit / las / LasParser / LasParser

Class: LasParser

las.LasParser.LasParser

LAS Parser

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new LasParser()

new LasParser()

Methods

buildSections

Protected Abstract buildSections(): (LasParameterSection | LasSectionGroup)[]

Private method to build parsed data into section data structures

Returns

(LasParameterSection | LasSectionGroup)[]


detectIndexUnit

detectIndexUnit(str): string

Searches through whole LAS file to determine index unit

Parameters

Name Type Description
strstringdetectIndexUnit

Returns

string


detectWrap

detectWrap(str): boolean

Detects the type of an LAS file wrap or not. Works for all LAS

Parameters

Name Type Description
strstringthe LAS file to be searched

Returns

boolean

wrap


getSectionGroups

getSectionGroups(): LasSectionGroup[]

Gets all the section groups. Doesn't include sections not in groups.

Returns

LasSectionGroup[]

array of LasSectionGroup


getSections

getSections(): LasParameterSection[]

Returns all sections not part of a group

Throws

when invoked to indicate the method should be overridden.

Returns

LasParameterSection[]

array of LasSection


parse

Abstract parse(str): void

This parser will be generated by JSON using parser grammar

Throws

when invoked to indicate the method should be overridden.

Parameters

Name Type Description
strstringinput to parse

Returns

void


isDataMainSectionName

Static isDataMainSectionName(name): boolean

Checks if input string follows LAS3.0 or LAS2.0 data main section naming convention (convenience method)

Parameters

Name Type Description
namestringstring to be matched

Returns

boolean

verification result


isVersionSectionName

Static isVersionSectionName(name): boolean

Checks if input string follows LAS3.0 or LAS2.0 version section naming convention (convenience method)

Parameters

Name Type Description
namestringstring to be matched

Returns

boolean

verification result


isWellSectionName

Static isWellSectionName(name): boolean

Checks if input string follows LAS3.0 or LAS2.0 well section naming convention (convenience method)

Parameters

Name Type Description
namestringstring to be matched

Returns

boolean

verification result