API / geotoolkit / las / LasParser / LasParser
LAS Parser
Constructors
Methods
Methods
▸ Protected Abstract buildSections(): (LasParameterSection | LasSectionGroup)[]
Private method to build 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
▸ 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
▸ Abstract parse(str): void
This parser will be generated by JSON using parser grammar
Throws
when invoked to indicate the method should be overridden.
| Name | Type | Description |
|---|---|---|
str | string | input to parse |
void
▸ 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
▸ 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
▸ 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