Skip to content

API / geotoolkit / las / ParserFactory / ParserFactory

Class: ParserFactory

las.ParserFactory.ParserFactory

class to create instances of LAS parsers

Table of contents

Constructors
  • [new ParserFactory()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.las.parserfactory.parserfactory.md#new parserfactory())
Methods

Contents

Constructors

new ParserFactory()

• new ParserFactory()

Methods

detectType

▸ Static detectType(data): number

Detects the type of an LAS file as LAS 2.0 or 3.0 or -1 if neither of two

Parameters

Name Type Description
datastringLAS content

Returns

number


getParser

▸ Static getParser(data, autoparse?): LasParser

Return parser appropriate parser for LAS content

Parameters

Name Type Description
datastringLAS content
Optional autoparsebooleancall parse() method

Returns

LasParser