---
# Spatial Reference System
SRS: 'EPSG:3006' # a.k.a. SWEREF99 TM, cf. https://epsg.io/3006
# (2D) extent: minX, minY, maxX, maxY
#
# Lantmäteriet uses a tile-scheme where the origin (upper-left corner) is at N8500000
# E-1200000 (SWEREF99 TM), where each tile is 256×256 pixels, and where the resolution at
# level 0 is 4096m per pixel.
#
# https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning_cache_v1.1.0.pdf
# https://www.lantmateriet.se/globalassets/geodata/geodatatjanster/tb_twk_visning-oversiktlig_v1.0.3.pdf
#
# We set the extent to a 4×4 tiles square at level 2 somehow centered on Norrbotten and
# Västerbotten. This represent a TILEROW (x) offset of 5, and a TILECOL (y) offset of 2.
# A 4×8 tiles rectangle with the same upper-left and upper-right coordinates can be used
# to cover the entire country.
#
extent:
- 110720
- 6927136 # alternatively 5878560 for the entire country
- 1159296
- 7975712
# Export options for MVT publishing, see
# https://gdal.org/en/latest/drivers/vector/mvt.html
vector-tiles:
min-zoom: 0 # res. 1024m/px
max-zoom: 7 # res. 8m/px
max-size: 4194304
max-features: 262144
tiling-scheme:
# Custom tiling scheme, cf. https://gdal.org/en/latest/drivers/vector/mvt.html#dataset-creation-options
# Compared to Lantmäteriet's scheme we start 2 levels deeper (resolution 1024m per pixel)
# and with 1024×1024 tiles
- 'EPSG:3006'
# upper-left corner of the upper-left tile (0,0) in the CRS
- 110720
- 7975712
# dimension of the tile at zoom level 0 (tile size * resolution)
- 1048576
# simplification factor, cf.
# https://gis.stackexchange.com/questions/401867/gdal-mvt-writer-simplification-parameter
simplification: 4.
simplification-max-zoom: 2.
# Take User-Agent value from Tor Browser 15.0 (based on Mozilla Firefox 140.4.0esr)
User-Agent: 'Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0'
# Map group names to one or more pattern of layer name(s). This is a convenience feature
# for systemd template units.
layer-groups:
adm:
- 'lm_topo250.lansyta'
- 'lm_topo250.kommunyta'
skydd:
- 'nvr.*'
- 'nvk.naturvardsavtal'
- 'sks.naturvardsavtal'
- 'sks.atervatningsavtal'
avverk:
- 'sks.avverk_anmald'
- 'sks.avverk_utford'
ren:
- 'sametinget.*'
vbk: 'vbk.*'
mrr: 'mrr.*'
ri:
- 'nvk.riksintresse_*'
- 'lst.riksintresse_*'
svk: 'svk.*'
misc:
- 'misc.dammar'
- 'misc.gigafactories'
nv:
- 'sks.nyckelbiotop'
- 'sks.nyckelbiotop_storskogsbruk'
- 'sks.naturvarde'
- 'sks.sumpskog'
- 'nvk.skyddsvard_statlig_skog'
- 'lst.pagaende_naturreservatsbildning'
kskog:
- 'nvk.kskog'
# Global GDAL/OGR configuration options, cf. https://gdal.org/user/configoptions.html and
# the driver-specific configuration options such as
# https://gdal.org/drivers/vector/pg.html#configuration-options or
# https://gdal.org/drivers/vector/gpkg.html#configuration-options
GDALconfig:
PG_USE_COPY: 'YES'
dataset:
# Path/URI of the output (destination) dataset.
path: 'PG:'
# Format (optional)
format: PostgreSQL
# Whether the dataset should be created if it does not exist. (Creation will fail if
# the driver doesn't support it.)
#create: true
#create-options:
# Optional driver-specific dataset creation options, cf. for instance
# https://gdal.org/drivers/vector/gpkg.html#dataset-creation-options
#VERSION: 'AUTO'
# Optional driver-specific dataset open options, cf. for instance
# https://gdal.org/drivers/vector/pg.html#dataset-open-options or
# https://gdal.org/drivers/vector/gpkg.html#dataset-open-options
open-options:
USER: geodata
DBNAME: geodata
layercache: public.layercache
# Optional dictionary of default layer creation options, cf.
# https://gdal.org/drivers/vector/pg.html#layer-creation-options or
# https://gdal.org/drivers/vector/gpkg.html#layer-creation-options
# These apply to all layers.
create-layer-options:
FID64: 'YES'
LAUNDER: 'NO'
EXTRACT_SCHEMA_FROM_LAYER_NAME: 'YES'
downloads:
# # List of cached paths and download recipes.
#
# - # URL from where to download the source file. path/to/file.gpkg can be used as
# # an alias when path/to/file.gpkg:url is its only subkey.
# url: 'https://example.net/path/to/file.gpkg'
#
# # Where to download the file.
# path: path/to/file.gpkg
#
# # 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
#
# # Maximum age for caching, in number of seconds ago. If the downloaded 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
#
# For convenience
#
# - path: path/to/file1.gpkg
# url: https://example.net/file1.gpkg
# - path: path/to/sub/file2.gpkg
# url: https://example.net/sub/file2.gpkg
#
# can be shortened as follow
#
# - basedir: path/to/
# baseurl: https://example.net/
# files:
# - file1.gpkg
# - sub/file2.gpkg
- basedir: nvk/nvr/
baseurl: https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/
files:
- TILLTRADESFORBUD.zip
- NP.zip
- NR.zip
- NVO.zip
- DVO.zip
- KR.zip
- VSO.zip
- LBSO.zip
- OBO.zip
- NM.zip
- IF.zip
- SPA_Rikstackande.zip
- HELCOM.zip
- Ramsar_2018.zip
- OSPAR.zip
- Varldsarv.zip
- biosfarsomraden.zip
- NVA.zip
- path: nvk/nvr/SCI_Rikstackande.zip
url: https://geodata.naturvardsverket.se/nedladdning/naturvardsregistret/SCI_Rikstackande.zip
max-size: 134217728 # 128MiB
- path: nvk/Skyddsvarda_statliga_skogar.zip
url: https://geodata.naturvardsverket.se/nedladdning/skog/Skyddsvarda_statliga_skogar.zip
- path: nvk/Sannolikt_och_potentiell_kontinuitetsskog_BorealRegion_2024.zip
url: https://geodata.naturvardsverket.se/nedladdning/Kartering_av_kontinuitetsskog/Sannolikt_och_potentiell_kontinuitetsskog_BorealRegion_2024.zip
max-size: 268435456 # 256MiB
- basedir: nvk/
baseurl: https://geodata.naturvardsverket.se/nedladdning/riksintresse/
files:
- RI_Naturvard.zip
- RI_Friluftsliv.zip
- basedir: lst/
baseurl: https://ext-dokument.lansstyrelsen.se/gemensamt/geodata/ShapeExport/
files:
- lst.LST_RI_Rorligt_friluftsliv_MB4kap2.zip
- lst.LST_RI_Obruten_kust_MB4kap3.zip
- lst.Lst_RI_Obrutet_fjall_MB4kap5.zip
- lst.LST_RI_Skyddade_vattendrag_MB4kap6.zip
- lstext.Pagaende_reservatsbildning.zip
- basedir: sks/
baseurl: https://geodpags.skogsstyrelsen.se/geodataport/data/
files:
- sksBiotopskydd_gpkg.zip
- sksNaturvardsavtal_gpkg.zip
- sksNyckelbiotoper_gpkg.zip
- sksStorskogsbrNyckelb_gpkg.zip
- sksNaturvarden_gpkg.zip
- sksAtervatningYta_gpkg.zip
- path: sks/sksSumpskogar_gpkg.zip
url: https://geodpags.skogsstyrelsen.se/geodataport/data/sksSumpskogar_gpkg.zip
max-size: 268435456 # 256MiB
- path: sks/sksAvverkAnm_gpkg.zip
url: https://geodpags.skogsstyrelsen.se/geodataport/data/sksAvverkAnm_gpkg.zip
max-size: 134217728 # 128MiB
- path: sks/sksUtfordAvverk_gpkg.zip
url: https://geodpags.skogsstyrelsen.se/geodataport/data/sksUtfordAvverk_gpkg.zip
max-size: 4294967296 # 4GiB
#max-age: 216000 # 60h
- basedir: vbk/
baseurl: https://ext-dokument.lansstyrelsen.se/gemensamt/geodata/ShapeExport/
files:
- lst.vbk_vindkraftverk.zip
- lst.vbk_projekteringsomraden.zip
- lst.vbk_havsbaserad_vindkraft.zip
- basedir: sametinget/
baseurl: https://ext-dokument.lansstyrelsen.se/Gemensamt/Geodata/Datadistribution/SWEREF99TM/Sametinget/
files:
- Samebyarnas_betesomraden.zip
- Samebyarnas_markanvandningsredovisning.zip
- basedir: sametinget/
baseurl: https://ext-dokument.lansstyrelsen.se/gemensamt/geodata/ShapeExport/
files:
- ren.riks_ren.zip
- ren.omr_riks.zip
- path: mrr/mineralrattigheter.zip
url: https://resource.sgu.se/data/oppnadata/mineralrattigheter/mineralrattigheter.zip
- path: svk/SVK_STAMNAT.zip
url: https://gis-services.metria.se/svkfeed/filer/SVK_STAMNAT.zip
license-info:
# Map source paths to their metada (description, copyright, license information and link).
administrativindelning_sverige.zip:
description: Topografi 250 Nedladdning, vektor
copyright: © Lantmäteriet
product_url: https://www.lantmateriet.se/sv/geodata/vara-produkter/produktlista/topografi-250-nedladdning-vektor/
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/TILLTRADESFORBUD.zip:
description: "Skyddade områden: tillträdesförbud (föreskriftsområden)"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/F2554ED6-3A9B-4955-B4AC-D61B35026C88
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/NP.zip:
description: "Skyddade områden: nationalparker"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/bfc33845-ffb9-4835-8355-76af3773d4e0
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/NR.zip:
description: "Skyddade områden: naturreservat"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/2921b01a-0baf-4702-a89f-9c5626c97844
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/NVO.zip:
description: "Skyddade områden: naturvårdsområden"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/dd8371a0-f692-44e3-bd0b-25de8dee8906
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/DVO.zip:
description: "Skyddade områden: djur- och växtskyddsområden"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/b4bb8837-8980-4093-be7e-c09f650df996
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/KR.zip:
description: "Skyddade områden: kulturreservat"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/55d17118-f977-46c9-8691-20baf657796e
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/VSO.zip:
description: "Skyddade områden: vattenskyddsområden"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/ae8d79d2-a799-4e1b-b500-05747a428816
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/LBSO.zip:
description: "Landskapsbildsskyddsområde"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/bf435698-15a4-4b0b-85ec-727605a0a6ba
license:
name: Inga begränsningar
url: https://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations
sks/sksBiotopskydd_gpkg.zip:
description: "Biotopskydd beslutade av Skogsstyrelsen"
copyright: © Skogsstyrelsen
product_url: https://www.geodata.se/geodataportalen/GetMetaDataById?ID=772d46b8-25a2-42f7-b3da-4b17f610bc53
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/OBO.zip:
description: "Skyddade områden: biotopskyddsområden"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search#/metadata/c3dd73b1-1c82-4db5-aac3-c8c6f240fa25
license:
name: CC0 1.0 Universiell
url: https://creativecommons.org/publicdomain/zero/1.0/deed.sv
nvk/nvr/NM.zip:
description: "Skyddade områden: naturminnen"
copyright: © Naturvårdsverket
product_url: https://geodatakatalogen.naturvardsverket.se/geonetwork/srv/swe/catalog.search
|