Commit 0e210c9f authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Update to new fundmuenzen schema

parent 0545b219
......@@ -36,7 +36,8 @@ class Fundmuenzen extends CsvReadable {
provider: 'fundmuenzen',
url: `https://www.muenzfunde.ch/id/country/ch/municipality/${records[7].toString()}/`,
name: records[0].toString(),
alternative_name: records[1].toString() + ' ' + records[2].toString() + ' ' + records[3].toString() + ' ' + records[4].toString(),
alternative_name: records[1].toString() + ' ' + records[2].toString() + ' '
+ records[3].toString() + ' ' + records[4].toString(),
typology: 'municipality',
country: records[14],
location: this.buildLocation(parseFloat(records[5]), parseFloat(records[6])),
......@@ -69,8 +70,6 @@ class Fundmuenzen extends CsvReadable {
}
private buildLocation(lon: number, lat: number) {
console.log(lon);
console.log(lat);
proj4.defs('EPSG:2056', '+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs');
proj4.defs('EPSG:4326', '+proj=longlat +datum=WGS84 +no_defs');
const coordinates = proj4('EPSG:2056', 'EPSG:4326', [lon, lat]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment