Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
fundmuenzen
Commits
0e210c9f
Commit
0e210c9f
authored
Jun 11, 2019
by
Tobias Steiner
Browse files
Update to new fundmuenzen schema
parent
0545b219
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.ts
View file @
0e210c9f
...
...
@@ -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
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment