API / geotoolkit / las / Las30 / Las30
LAS 3.0 parser implementation
↳
Las30
Constructors
Methods
Methods
▸ Protected buildSections(): (LasParameterSection | LasSectionGroup)[]
Builds parsed data into section data structures
(LasParameterSection | LasSectionGroup)[]
▸ detectIndexUnit(str): string
Searches through whole LAS file to determine index unit
| Name | Type | Description |
|---|---|---|
str | string | detectIndexUnit |
string
▸ detectWrap(str): boolean
Detects the type of an LAS file wrap or not. Works for all LAS
| Name | Type | Description |
|---|---|---|
str | string | the LAS file to be searched |
boolean
wrap
▸ getComments(): LasComments[]
Returns all comments
array of LasComments
▸ getSectionGroups(): LasSectionGroup[]
Gets all the section groups. Doesn't include sections not in groups.
array of LasSectionGroup
▸ getSections(): LasParameterSection[]
Returns all sections not part of a group
Throws
when invoked to indicate the method should be overridden.
array of LasSection
▸ parse(str): boolean
Parser done by hand to parse LAS 3.0 files
| Name | Type | Description |
|---|---|---|
str | string | input to parse |
boolean
valid: ran successfully or not
▸ Static getDebugMode(): DebugInfo
Return current debug mode states
▸ Static isDataMainSectionName(name): boolean
Checks if input string follows LAS3.0 or LAS2.0 data main section naming convention (convenience method)
| Name | Type | Description |
|---|---|---|
name | string | string to be matched |
boolean
verification result
LasParser.isDataMainSectionName
▸ Static isVersionSectionName(name): boolean
Checks if input string follows LAS3.0 or LAS2.0 version section naming convention (convenience method)
| Name | Type | Description |
|---|---|---|
name | string | string to be matched |
boolean
verification result
LasParser.isVersionSectionName
▸ Static isWellSectionName(name): boolean
Checks if input string follows LAS3.0 or LAS2.0 well section naming convention (convenience method)
| Name | Type | Description |
|---|---|---|
name | string | string to be matched |
boolean
verification result
▸ Static setDebugMode(debugInfo): void
Set debug mode states
| Name | Type | Description |
|---|---|---|
debugInfo | DebugInfo | debug information |
void