Last updated

API / geotoolkit / las / Las30 / Las30

Class: Las30

las.Las30.Las30

LAS 3.0 parser implementation

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new Las30(options)

new Las30(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

LasParser.constructor

Methods

buildSections

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

Builds parsed data into section data structures

Returns

(LasParameterSection | LasSectionGroup)[]

Overrides

LasParser.buildSections


detectIndexUnit

detectIndexUnit(str): string

Searches through whole LAS file to determine index unit

Parameters

Name Type Description
strstringdetectIndexUnit

Returns

string

Inherited from

LasParser.detectIndexUnit


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

Inherited from

LasParser.detectWrap


getComments

getComments(): LasComments[]

Returns all comments

Returns

LasComments[]

array of LasComments


getSectionGroups

getSectionGroups(): LasSectionGroup[]

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

Returns

LasSectionGroup[]

array of LasSectionGroup

Inherited from

LasParser.getSectionGroups


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

Inherited from

LasParser.getSections


parse

parse(str): boolean

Parser done by hand to parse LAS 3.0 files

Parameters

Name Type Description
strstringinput to parse

Returns

boolean

valid: ran successfully or not

Overrides

LasParser.parse


getDebugMode

Static getDebugMode(): DebugInfo

Return current debug mode states

Returns

DebugInfo


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

Inherited from

LasParser.isDataMainSectionName


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

Inherited from

LasParser.isVersionSectionName


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

Inherited from

LasParser.isWellSectionName


setDebugMode

Static setDebugMode(debugInfo): void

Set debug mode states

Parameters

Name Type Description
debugInfoDebugInfodebug information

Returns

void