aboutsummaryrefslogtreecommitdiffstats
path: root/config.yml
blob: 6aa7abf0b44fc430339a980fbd432e5aa4fb7d96 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
# Take User-Agent value from Tor Browser 13.0.15 (based on Mozilla Firefox 115.11.0esr)
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0'

# Map group names to one or more pattern of layer name(s).  This is a
# convenience feature for systemd template units.
layer-groups:
  nvr: 'nvr:*'
  sks: 'sks:*'


layers:
#  # Keys are layer names in the output dataset.  Values are list of dictionaries
#  # specifying source data and conversion information for these layers.  If a
#  # layer has a single source, then it can be inlined instead.
#  layer1_name:
#    - source:
#        download:
#          # source:download:url: URL from where to download the source file.
#          # source:download can be used as an alias when source:download:url is
#          # its only subkey.
#          url: 'https://example.net/path/to/layer.zip'
#          # source:download:max-size: The maximum size to download in bytes.  An
#          # error is raised when the payload size exceeds this value.
#          # (Default: 67108864, in other words 64MiB)
#          max-size: 1073741824
#          # source:download:script: Basename of the download script to use for
#          # that layer.  The entry is ignored when the main script doesn't match.
#          script: webmap-download
#        cache:
#          # source:cache:path: Local path (relative to --cachedir) where to
#          # (atomically) save the downloaded file.  The same path can be used by
#          # multiple entries as long as their pairs (source:download:url,
#          # source:download:script) match.  Any parent directories are created if
#          # needed.
#          # If the path is empty or ends with a '/' character then it treated as a
#          # directory and the last component of source:download:url implicitly
#          # used as filename.  In that case an error is raised if no filename can
#          # be derived from the URL.
#          # source:cache can be used as an alias when source:cache:path is its
#          # only subkey.
#          path: path/to/sub/dir/
#          # source:cache:max-age: Maximum age for caching, in number of seconds
#          # ago.  If source:cache:path exists and its mtime and/or ctime is newer
#          # than this value then no HTTP query is made.
#          # (Default: 21600, in other words 6h)
#          max-age: 86400

  'nvr:TILLTRADESFORBUD':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/TILLTRADESFORBUD.zip'
      cache: naturvardsregistret/

  'nvr:NP':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NP.zip'
      cache: naturvardsregistret/

  'nvr:NR':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NR.zip'
      cache: naturvardsregistret/

  'nvr:NVO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NVO.zip'
      cache: naturvardsregistret/

  'nvr:DVO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/DVO.zip'
      cache: naturvardsregistret/

  'nvr:KR':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/KR.zip'
      cache: naturvardsregistret/

  'nvr:VSO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/VSO.zip'
      cache: naturvardsregistret/

  'nvr:LBSO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/LBSO.zip'
      cache: naturvardsregistret/

  'nvr:OBO':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/OBO.zip'
      cache: naturvardsregistret/

  'nvr:NM':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NM.zip'
      cache: naturvardsregistret/

  'nvr:IF':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/IF.zip'
      cache: naturvardsregistret/

  'nvr:SPA_Rikstackande':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/SPA_Rikstackande.zip'
      cache: naturvardsregistret/

  'nvr:SCI_Rikstackande':
    source:
      download:
        url: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/SCI_Rikstackande.zip'
        max-size: 134217728 # 128MiB
      cache: naturvardsregistret/

  'nvr:HELCOM':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/HELCOM.zip'
      cache: naturvardsregistret/

  'nvr:Ramsar_2018':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/Ramsar_2018.zip'
      cache: naturvardsregistret/

  'nvr:OSPAR':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/OSPAR.zip'
      cache: naturvardsregistret/

  'nvr:Varldsarv':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/Varldsarv.zip'
      cache: naturvardsregistret/

  'nvr:biosfarsomraden':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/biosfarsomraden.zip'
      cache: naturvardsregistret/

  'nvr:NVA':
    source:
      download: 'https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/NVA.zip'
      cache: naturvardsregistret/

  'sks:AvverkAnm':
    source:
      download:
        url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksAvverkAnm.zip'
        max-size: 134217728 # 128MiB
      cache: sks/

  'sks:UtfordAvverk':
    - source:
        download:
          url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2000-2015.zip'
          max-size: 805306368 # 768MiB
        cache:
          path: sks/
          max-age: 2592000 # 30d
    - source:
        download:
          url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2016-2019.zip'
          max-size: 805306368 # 768MiB
        cache:
          path: sks/
          max-age: 2592000 # 30d
    - source:
        download:
          url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2020-2022.zip'
          max-size: 805306368 # 768MiB
        cache:
          path: sks/
          max-age: 864000 # 10d
    - source:
        download:
          url: 'https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk-2023-.zip'
          max-size: 1073741824 # 1GiB
        cache: sks/