-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbe_vlg.py
More file actions
50 lines (42 loc) · 2.82 KB
/
be_vlg.py
File metadata and controls
50 lines (42 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from vecorel_cli.conversion.admin import AdminConverterMixin
from ..conversion.fiboa_converter import FiboaBaseConverter
from .commons.ec import AddHCATMixin
PREFIX = "https://www.landbouwvlaanderen.be/bestanden/gis/"
class Converter(AdminConverterMixin, AddHCATMixin, FiboaBaseConverter):
variants = {
str(k): {PREFIX + v: [v.replace("_GPKG.zip", ".gpkg")]}
for k, v in (
(2025, "Landbouwgebruikspercelen_2025_-_Voorlopig_(extractie_02-06-2025)_GPKG.zip"),
(2024, "Landbouwgebruikspercelen_2024_-_Definitief_(extractie_27-03-2025)_GPKG.zip"),
(2023, "Landbouwgebruikspercelen_2023_-_Definitief_(extractie_28-03-2024)_GPKG.zip"),
(2022, "Landbouwgebruikspercelen_2022_-_Definitief_(extractie_26-06-2023)_GPKG.zip"),
(2021, "Landbouwgebruikspercelen_2021_-_Definitief_(extractie_15-03-2022)_GPKG.zip"),
(2020, "Landbouwgebruikspercelen_2020_uitgebreid_toestand_19-03-2021_GPKG.zip"),
(2019, "Landbouwgebruikspercelen_2019_-_Definitief_(extractie_20-03-2020)_GPKG.zip"),
(2018, "Landbouwgebruikspercelen_2018_-_Definitief_(extractie_23-03-2022)_GPKG.zip"),
)
}
id = "be_vlg"
short_name = "Belgium, Flanders"
admin_subdivision_code = "VLG"
title = "Field boundaries for Flanders, Belgium"
description = """
Since 2020, the Department of Agriculture and Fisheries has been publishing a more extensive set of data related to agricultural use plots (from the 2008 campaign).
From 2023, the downloadable dataset of agricultural use plots will also include the specialization given by the company (= company typology) and that is given to the plots of the company. Based on the typology, the companies are divided into 4 major specializations: arable farming, horticulture, livestock farming and mixed farms. The specialization of each company is calculated annually according to a European method and is based on the standard output of the various agricultural productions on the company. It is therefore an economic specialization and not a reflection of all agricultural production on the company.
"""
provider = "Agentschap Landbouw & Zeevisserij (Government) <https://landbouwcijfers.vlaanderen.be/open-geodata-landbouwgebruikspercelen>"
attribution = "Bron: Dept. LV"
license = "Licentie modellicentie-gratis-hergebruik/v1.0 <https://data.vlaanderen.be/id/licentie/modellicentie-gratis-hergebruik/v1.0>"
columns = {
"geometry": "geometry",
"BT_OMSCH": "typology",
"GRAF_OPP": "metrics:area",
"REF_ID": "id",
"GWSCOD_H": "crop:code",
"GWSNAM_H": "crop:name",
}
column_additions = {
"determination:datetime": "2024-03-28T00:00:00Z",
}
ec_mapping_csv = "be_vlg_2021.csv"
missing_schemas = {"properties": {"typology": {"type": "string"}}}