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
Array.<ImageWMS>Array.<string>numberobjecton (catched) error, this object contains the error
Kind: static property of SuitabilityGeothermalDrillingSwitzerland
Proxy server URL (Getter)
Kind: static property of SuitabilityGeothermalDrillingSwitzerland
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/');
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);
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');
numberCheckSuitabilityCanton
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');
objectTest 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();