Skip to content

Commit 06125cb

Browse files
committed
Update converters for Germany to use the flik extension
1 parent 6b8ee0c commit 06125cb

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

fiboa_cli/datasets/de_bb.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
PROVIDER_URL = "https://geobroker.geobasis-bb.de/gbss.php?MODE=GetProductInformation&PRODUCTID=9e95f21f-4ecf-4682-9a44-e5f7609f6fa0"
1111
# From http://osmtipps.lefty1963.de/2008/10/bundeslnder.html
1212
BBOX = [11.2681664447,51.3606627053,14.7647105012,53.5579500214]
13+
EXTENSIONS = [
14+
"https://fiboa.github.io/flik-extension/v0.1.0/schema.yaml"
15+
]
1316
COLUMNS = {
1417
'geometry': 'geometry',
1518
'FB_ID': ['flik', 'id'], # make flik id a dedicated column to align with NRW etc.
@@ -25,11 +28,7 @@
2528
# Don't include SHAPE_AREA
2629
}
2730
MISSING_SCHEMAS = {
28-
'required': ['flik'],
2931
'properties': {
30-
'flik': {
31-
'type': 'string'
32-
},
3332
'hbn': {
3433
'type': 'string'
3534
},

fiboa_cli/datasets/de_nds.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
ATTRIBUTION = "© ML/SLA Niedersachsen (2024), dl-de/by-2-0 (www.govdata.de/dl-de/by-2-0), Daten bearbeitet"
1010
# From http://osmtipps.lefty1963.de/2008/10/bundeslnder.html
1111
BBOX = [6.6545841239,51.2954150799,11.59769814,53.8941514415]
12+
EXTENSIONS = [
13+
"https://fiboa.github.io/flik-extension/v0.1.0/schema.yaml"
14+
]
1215
COLUMNS = {
1316
'geometry': 'geometry',
1417
'FLIK': ['id', 'flik'], # make flik id a dedicated column to align with NRW etc.
@@ -21,11 +24,7 @@
2124
# Don't include SHAPE_Area
2225
}
2326
MISSING_SCHEMAS = {
24-
'required': ['flik'],
2527
'properties': {
26-
'flik': {
27-
'type': 'string'
28-
},
2928
'ant_jahr': {
3029
'type': 'int16'
3130
},

fiboa_cli/datasets/de_nrw.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
PROVIDER_URL = "https://www.opengeodata.nrw.de/produkte/umwelt_klima/bodennutzung/landwirtschaft/"
99
# From http://osmtipps.lefty1963.de/2008/10/bundeslnder.html
1010
BBOX = [5.8659988131,50.3226989435,9.4476584861,52.5310351488]
11-
EXTENSIONS = ["https://fiboa.github.io/inspire-extension/v0.2.0/schema.yaml"]
11+
EXTENSIONS = [
12+
"https://fiboa.github.io/inspire-extension/v0.2.0/schema.yaml",
13+
"https://fiboa.github.io/flik-extension/v0.1.0/schema.yaml"
14+
]
1215
COLUMNS = {
1316
'geometry': 'geometry',
1417
'ID': 'id',
@@ -20,11 +23,7 @@
2023
'AREA_HA': 'area'
2124
}
2225
MISSING_SCHEMAS = {
23-
'required': ['flik'],
2426
'properties': {
25-
'flik': {
26-
'type': 'string'
27-
},
2827
'nutz_code': {
2928
'type': 'string'
3029
},

fiboa_cli/datasets/de_sh.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
LICENSE = "dl-de/zero-2-0"
1010
# From http://osmtipps.lefty1963.de/2008/10/bundeslnder.html
1111
BBOX = [7.8685145620,53.3590675115,11.3132037822,55.0573747014]
12+
EXTENSIONS = [
13+
"https://fiboa.github.io/flik-extension/v0.1.0/schema.yaml"
14+
]
1215
COLUMNS = {
1316
'geometry': 'geometry',
1417
'fachguelti': 'determination_datetime',
@@ -18,11 +21,7 @@
1821
'SHAPE_LEN': "perimeter"
1922
}
2023
MISSING_SCHEMAS = {
21-
'required': ['flik'],
2224
'properties': {
23-
'flik': {
24-
'type': 'string'
25-
},
2625
'hbn': {
2726
'type': 'string'
2827
}

0 commit comments

Comments
 (0)