Last updated

API / geotoolkit / contour / datasource / ContourFaultsLoader / ContourFaultsLoader

Class: ContourFaultsLoader

datasource.ContourFaultsLoader.ContourFaultsLoader

A contour reader for parsing faults data using the built in fault data format.
Example valid data file that will parse into a single open fault with four points
"O;12346,17069;11142,16975;11258,5566;15319,5579"

The following data format is used:
(TypeOfFault); // splits fault segments and identifies next fault type.
(FaultX0),(FaultY0),(FaultLeft0),(FaultRight0); // x0, y0, optional left0, right0
(FaultX1),(FaultY1),(FaultLeft1),(FaultRight1); // x1, y1, optional left1, right1

FaultLeft and FaultRight are optional, TypeOfFault can be 'o', 'O' for open or
'c', 'C' for closed, any other text will be treated as open fault.

Table of contents

Constructors
Methods

Contents

Constructors

new ContourFaultsLoader()

new ContourFaultsLoader()

Methods

getClassName

getClassName(): string

Returns

string


readFaults

readFaults(faultData): ContourFaultList

Reads faults from a file into a ContourFaultList object and returns it.

Parameters

Name Type Description
faultDatastringThe fault data

Returns

ContourFaultList

The contour fault list object.


getClassName

Static getClassName(): string

Returns

string