aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-06-14 20:22:09 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-06-14 21:11:05 +0200
commitc071bcf3c28ba095b5b8f4ecd995f875d3c35324 (patch)
tree025537f65646e7807acf6b65cabec6e52bb33e38
parent00aad33fcbe8e76700282fae2f8057ccd01904b1 (diff)
VBK: Fix schema for source layer again.
This reverses commit 86f1e635a647e94c33e10e4d230853fd5d84c0bc. It appears that .zip files have a consistent schema now…
-rw-r--r--config.yml28
1 files changed, 11 insertions, 17 deletions
diff --git a/config.yml b/config.yml
index c43d1b1..3c7f2da 100644
--- a/config.yml
+++ b/config.yml
@@ -3155,7 +3155,7 @@ layers:
import:
path: lst.vbk_vindkraftverk.shp
format: ESRI Shapefile
- layername: LST.vbk_vindkraftverk
+ layername: lst.vbk_vindkraftverk
field-map:
VERKID: VerkID
OMRID: OmrID
@@ -3348,11 +3348,11 @@ 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
+ layername: lst.vbk_projekteringsomraden
field-map:
OMRID: OmrID
PROJNAMN: Projektnamn
@@ -3401,16 +3401,6 @@ 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: |
@@ -3569,11 +3559,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
@@ -3633,6 +3623,10 @@ 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:
offshore_completed:
where: |