---
# 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 14.0 (based on Mozilla Firefox 128.3.0esr)
User-Agent: 'Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0'
# Map group names to one or more pattern of layer name(s). This is a convenience feature
# for systemd template units.
layer-groups:
administrativindelning:
- lansyta
- 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:
- dammar
- gigafactories
nv:
- 'sks:nyckelbiotop'
- 'sks:nyckelbiotop_storskogsbruk'
- 'sks:naturvarde'
- 'sks:sumpskog'
- 'nvk:skyddsvard_statlig_skog'
- 'lst:pagaende_naturreservatsbildning'
# 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:
ACTIVE_SCHEMA: postgis
USER: webmap_import
DBNAME: webmap
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: 'NO'
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
|