Skip to content

API / geotoolkit / las / LasParameterSection / LasParameterSection

Class: LasParameterSection

las.LasParameterSection.LasParameterSection

A section of LAS Data obtained from parser.

Hierarchy

Table of contents

Constructors
  • [new LasParameterSection(section)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.las.lasparametersection.lasparametersection.md#new lasparametersection(section))
Methods

Contents

Constructors

new LasParameterSection(section)

• new LasParameterSection(section?)

Parameters

Name Type
Optional sectionOptions

Overrides

LasSection.constructor

Methods

addComment

▸ addComment(position, comment): LasParameterSection

Added Comment

Parameters

Name Type Description
positionnumberdisplacement relative to header
commentstringcomment

Returns

LasParameterSection


getAssociations

▸ getAssociations(): string

Gets associations of this section

Returns

string

Inherited from

LasSection.getAssociations


getComments

▸ getComments(): LasComments

Gets comments

Returns

LasComments


getData

▸ getData(): LasParameter[]

Gets data

Returns

LasParameter[]

Overrides

LasSection.getData


getName

▸ getName(): string

Gets name

Returns

string

Inherited from

LasSection.getName


getParameter

▸ getParameter(mnemonic): LasParameter

Gets parameter object associated with mnemonic in parameter line

Parameters

Name Type Description
mnemonicstringparameter mnemonic

Returns

LasParameter


getParameterValue

▸ getParameterValue(mnemonic): string | number

Gets value associated with mnemonic in parameter line The value is parsed as string. It Will be either number or text.

Parameters

Name Type Description
mnemonicstringparameter mnemonic

Returns

string | number


setData

▸ setData(data): LasParameterSection

Sets data

Parameters

Name Type Description
dataDatadata

Returns

LasParameterSection

Inherited from

LasSection.setData


setName

▸ setName(name): LasParameterSection

Set section name

Parameters

Name Type Description
namestringsection name

Returns

LasParameterSection

Inherited from

LasSection.setName


setParameter

▸ setParameter(mnemonic, unit, value, description?, forceNonUniqueMnemonic?): LasParameterSection

Set param

Throws

Error if mnemonic is null

Parameters

Name Type Description
mnemonicstringmnemonic
unitstringunit
valuestring | numbervalue
Optional descriptionstringdescription
Optional forceNonUniqueMnemonicbooleanlets adding extra LasParameter rather then replacing an existing one with the same mnemonic

Returns

LasParameterSection