From d1f8a99fd6ebe22a5213857dd4ac03dc7ac654ce Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 11 Jun 2024 02:42:50 +0200 Subject: Fix extent logic when the SRS of the output layer is not the destination SRS. The extent is expressed in config['SRS'] in traditional GIS order (easting/northing ordered: minX, minY, maxX, maxY), but the destination layers might be pre-existing and use other SRS:es or mapping strategy. --- config.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'config.yml') diff --git a/config.yml b/config.yml index 89a32c7..bd9dfc5 100644 --- a/config.yml +++ b/config.yml @@ -2,19 +2,21 @@ # Spatial Reference System SRS: 'EPSG:3006' # a.k.a. SWEREF99 TM, cf. https://epsg.io/3006 -# (2D) extent +# (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: - # 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. - 110720 - 6927136 # alternatively 5878560 for the entire country - 1159296 -- cgit v1.2.3