Suitability Geothermal Drilling Switzerland

SuitabilityGeothermalDrillingSwitzerland is an open source Java script library that allows to query the cantonal interfaces whether a site in Switzerland is suitable for a geothermal drilling. This library is supporting the web app www.kann-ich-bohren.ch.

This project is maintained by SFOE

SuitabilityGeothermalDrillingSwitzerland

BfeLib.error

on (catched) error, this object contains the error

Kind: static property of SuitabilityGeothermalDrillingSwitzerland

BfeLib.proxyServer

Proxy server URL (Getter)

Kind: static property of SuitabilityGeothermalDrillingSwitzerland

BfeLib.SetProxyServer(url)

Setter for proxyServer

Kind: static method of SuitabilityGeothermalDrillingSwitzerland

Param Type Description
url string proxy server url, e.g. ‘https://bfe-cors.geotest.ch/’

Example

SetProxyServer('https://bfe-cors.geotest.ch/');

BfeLib.GetWMSCanton(cantonAbbrev, withProxy, verbose) ⇒ Array.<ImageWMS>

GetWMSCanton

Kind: static method of SuitabilityGeothermalDrillingSwitzerland
Returns: Array.<ImageWMS> - for open layers wms, not defined for esri yet

Param Type Description
cantonAbbrev string two letter abbreviation for canton, e.g. ‘AG’
withProxy boolean (optional) add proxy server to url. default = false
verbose boolean (optional) activate console log. default = false

Example

const imageWmsList = await GetWMSCanton('UR', true);

BfeLib.GetWMSLegendCanton(cantonAbbrev) ⇒ Array.<string>

GetWMSLegendCanton

Kind: static method of SuitabilityGeothermalDrillingSwitzerland
Returns: Array.<string> - legend urls

Param Type Description
cantonAbbrev string two letter abbreviation for canton, e.g. ‘AG’

Example

let legends = await GetWMSLegendCanton('VD');

BfeLib.CheckSuitabilityCanton(easting, northing, cantonAbbrev, verbose) ⇒ number

CheckSuitabilityCanton

Kind: static method of SuitabilityGeothermalDrillingSwitzerland
Returns: number - harmonised suitability value, 999 on error -> check ‘error’ object

Param Type Description
easting number LV95 Easting in (m)
northing number LV95 Northing in (m)
cantonAbbrev string two letter abbreviation for canton, e.g. ‘AG’
verbose boolean (optional) activate console log

Example

let result = await CheckSuitabilityCanton(2652462, 1196901, 'LU');

BfeLib.TestAllCantons(verbose) ⇒ object

Test WMS definition for all cantons

Kind: static method of SuitabilityGeothermalDrillingSwitzerland
Returns: object - test result for all cantons

Param Type Description
verbose boolean (optional) activate detailled console log. default = true

Example

let result = await TestAllCantons();