API / geotoolkit / contour / datasource / ContourFaultsLoader / 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.
Constructors
Methods
▸ getClassName(): string
string
▸ readFaults(faultData): ContourFaultList
Reads faults from a file into a ContourFaultList object and returns it.
| Name | Type | Description |
|---|---|---|
faultData | string | The fault data |
The contour fault list object.
▸ Static getClassName(): string
string