aboutsummaryrefslogtreecommitdiffstats
path: root/config.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-05-16 20:14:52 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-01 19:21:49 +0200
commit4fe584a6e3eb9a32977ed545146db267c83f3788 (patch)
treef1478bea7cc935693f7a93d112bfc65b7ec8787c /config.yml
parent141ba1a7dac55532b6d4481ede69248d0aa50f78 (diff)
Add `webmap-download` script.
Diffstat (limited to 'config.yml')
-rw-r--r--config.yml179
1 files changed, 179 insertions, 0 deletions
diff --git a/config.yml b/config.yml
new file mode 100644
index 0000000..6aa7abf
--- /dev/null
+++ b/config.yml
@@ -0,0 +1,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/