aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-04 17:33:02 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-04 17:41:57 +0200
commit86f1e635a647e94c33e10e4d230853fd5d84c0bc (patch)
treedfc143a4bcce8db5129eb5e0878e635ff9bd9c60
parent06adefab34f5a73fc3ae7f587c875dfb353eccfd (diff)
VBK: Fix schema for source layer LST.vbk_projekteringsomraden and LST.vbk_havsbaserad_vindkraft.
It appears these source file are exported daily at 01:53, then again at 07:41 but different content and schema…. We're now targeting the latter. This reverts commit 59a0ebbb824eaa75dcf7b0e39c5b627fb5ace294 and partially reverts commit 2d8f839914feb2b9d31f2682b1c9992dd21c9b16.
-rw-r--r--config.yml24
1 files changed, 15 insertions, 9 deletions
diff --git a/config.yml b/config.yml
index c66be5d..a195e5e 100644
--- a/config.yml
+++ b/config.yml
@@ -3084,9 +3084,9 @@ layers:
unar:
format: zip
patterns:
- - 'lst.vbk_projekteringsomraden.*'
+ - 'LST.vbk_projekteringsomraden.*'
import:
- path: lst.vbk_projekteringsomraden.shp
+ path: LST.vbk_projekteringsomraden.shp
format: ESRI Shapefile
layername: LST.vbk_projekteringsomraden
field-map:
@@ -3137,6 +3137,16 @@ layers:
- replace: '([0-9]{4})([0-9]{2})([0-9]{2})'
with: '{0}-{1}-{2}'
type: regex
+ EJAKTUELL:
+ - replace: 'Yes'
+ with: '1'
+ - replace: 'No'
+ with: '0'
+ Raderat:
+ - replace: 'Yes'
+ with: '1'
+ - replace: 'No'
+ with: '0'
publish:
area_current:
where: |
@@ -3291,11 +3301,11 @@ layers:
unar:
format: zip
patterns:
- - 'lst.vbk_havsbaserad_vindkraft.*'
+ - 'LST.vbk_havsbaserad_vindkraft.*'
import:
- path: lst.vbk_havsbaserad_vindkraft.shp
+ path: LST.vbk_havsbaserad_vindkraft.shp
format: ESRI Shapefile
- layername: lst.vbk_havsbaserad_vindkraft
+ layername: LST.vbk_havsbaserad_vindkraft
field-map:
OMRID: OmrID
HAVSPARKNA: Projektnamn
@@ -3355,10 +3365,6 @@ layers:
with: '1'
- replace: 'No'
with: '0'
- SenasteUpp:
- - replace: '([0-9]{4})([0-9]{2})([0-9]{2})'
- with: '{0}-{1}-{2}'
- type: regex
publish:
area_offshore:
where: |