This repository was archived by the owner on Sep 24, 2024. It is now read-only.
forked from ezwelty/opentrees-harvester
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdenmark.js
More file actions
53 lines (53 loc) · 2.21 KB
/
denmark.js
File metadata and controls
53 lines (53 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = [
{
id: 'copenhagen',
country: 'Denmark',
download: 'http://wfs-kbhkort.kk.dk/k101/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=k101:trae_basis&outputFormat=csv&SRSNAME=EPSG:4326',
info: 'https://www.opendata.dk/city-of-copenhagen/trae_basis',
crosswalk: {
scientific: 'traeart',
common: 'dansk_navn',
// Slaegstnavn "family name" has values like Lind
planted: 'planteaar',
// Stammeofma "tribal embrace(?)" - crown?,
health: 'sundhed',
// TODO sooo many other fields
},
short: 'Copenhagen'
},
{
pending: 'Data is empty',
id: 'ballerup',
country: 'Denmark',
short: 'Ballerup',
long: 'Ballerup Kommune',
download: 'http://ballerup.mapcentia.com/api/v1/sql/ballerup?q=SELECT%20*%20FROM%20drift.mapgo_punkter%20WHERE%20underelement%20=%20%27Fritvoksende%20tr%C3%A6er%27&lifetime=0&srs=4326&client_encoding=UTF8&format=csv',
info: 'https://www.opendata.dk/ballerup-kommune/fritvoksende-trae',
license: {
name: 'Open Data DK licens',
url: 'http://portal.opendata.dk/dataset/open-data-dk-licens'
}
},
{
id: 'vejle',
country: 'Denmark',
short: 'Vejle',
long: 'Vejle Kommune - Vej & Park Drift',
download: 'http://kortservice.vejle.dk/gis/rest/services/OPENDATA/Vejle/MapServer/12/query?where=OBJECTID%3C%3E0&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelIntersects&outFields=*&returnGeometry=true&outSR=4326&returnIdsOnly=false&returnCountOnly=false&returnZ=false&returnM=false&returnDistinctValues=false&f=geojson',
info: 'https://www.opendata.dk/city-of-vejle/parkdrift-parkpleje-punktdata',
license: { name: 'Andet (Open)' },
// Includes all park point features, not just trees and bushes
delFunc: x => !Boolean(x.ELTTYPE.match(/(træer|træ|buske)/i)),
crosswalk: {
ref: 'OBJECTID',
// PLANTENAVN: Very messy mix of scientific name, common name, and notes
scientific: 'PLANTENAVN',
notable: x => ({
'Historisk træ': 'historic',
})[x.ELTTYPE],
location: x => 'park',
health: x => x.ELTTYPE === 'Træruin' ? 'dead' : null,
note: 'BESKRIVELSE'
}
}
].map(s => ({ ...s, country: 'Denmark' }))