Skip to content

API / geotoolkit / las / LasVersionSection / LasVersionSection

Class: LasVersionSection

las.LasVersionSection.LasVersionSection

A version section

Hierarchy

Table of contents

Constructors
  • [new LasVersionSection(versionNumber)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.las.lasversionsection.lasversionsection.md#new lasversionsection(versionnumber))
Methods

Contents

Constructors

new LasVersionSection(versionNumber)

• new LasVersionSection(versionNumber?)

Parameters

Name Type
Optional versionNumberstring | number

Overrides

LasParameterSection.constructor

Methods

addComment

▸ addComment(position, comment): LasVersionSection

Added Comment

Parameters

Name Type Description
positionnumberdisplacement relative to header
commentstringcomment

Returns

LasVersionSection

Inherited from

LasParameterSection.addComment


getAssociations

▸ getAssociations(): string

Gets associations of this section

Returns

string

Inherited from

LasParameterSection.getAssociations


getComments

▸ getComments(): LasComments

Gets comments

Returns

LasComments

Inherited from

LasParameterSection.getComments


getData

▸ getData(): LasParameter[]

Gets data

Returns

LasParameter[]

Inherited from

LasParameterSection.getData


getName

▸ getName(): string

Gets name

Returns

string

Inherited from

LasParameterSection.getName


getParameter

▸ getParameter(mnemonic): LasParameter

Gets parameter object associated with mnemonic in parameter line

Parameters

Name Type Description
mnemonicstringparameter mnemonic

Returns

LasParameter

Inherited from

LasParameterSection.getParameter


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

Inherited from

LasParameterSection.getParameterValue


setData

▸ setData(data): LasVersionSection

Sets data

Parameters

Name Type Description
dataDatadata

Returns

LasVersionSection

Inherited from

LasParameterSection.setData


setDataValuesDelimiter

▸ setDataValuesDelimiter(dataValuesDelimiter, description?): LasVersionSection

Sets data section values delimiter name

Parameters

Name Type Description
dataValuesDelimiterstringdata section values delimiter name
Optional descriptionstringdescription

Returns

LasVersionSection


setName

▸ setName(name): LasVersionSection

Set section name

Parameters

Name Type Description
namestringsection name

Returns

LasVersionSection

Inherited from

LasParameterSection.setName


setParameter

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

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

LasVersionSection

Inherited from

LasParameterSection.setParameter


setUseWrap

▸ setUseWrap(useWrap, description?): LasVersionSection

Sets wrap mode

Parameters

Name Type Description
useWrapbooleanif use wrap
Optional descriptionstringdescription

Returns

LasVersionSection


setVersion

▸ setVersion(version, description?): LasVersionSection

Set version number

Parameters

Name Type Description
versionstring | numberversion number
Optional descriptionstringdescription

Returns

LasVersionSection