Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- ES-CL: the ITACyL server is https-only, the 2025 shapefiles sit in province subfolders, and C_REFREC is the identifier
- A test refuses a fixture above 5 MB, committed or merely lying in the fixture folder, because a failing convert test downloads the real source there
- ES-MD: find RECINTO.shp wherever the archive puts it
- SK: KODKD is the LPIS block code (non-unique, sometimes empty), so it is kept as block_id and the row index identifies the field
- EC-LT: nothing in the release identifies a parcel, so the row index does
- ES-CM: read the year-named SIGPAC service, whose id field is OBJECTID_1, with the determination date from the variant
- ES-CN: the seven island files each kept their own row index, and the region was declared as Cantabria
Expand Down
7 changes: 6 additions & 1 deletion fiboa_cli/datasets/sk.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,21 @@ class Converter(AdminConverterMixin, AddHCATMixin, FiboaBaseConverter):
provider = "Pôdohospodárska platobná agentúra <https://www.apa.sk>"
license = "CC0-1.0" # "Open Data"
ec_mapping_csv = "https://fiboa.org/code/sk/sk.csv"
# KODKD is the LPIS block code, shared by several fields and sometimes empty;
# the row index is the field id and the code is kept as block_id.
index_as_id = True
columns = {
"id": "id",
"geometry": "geometry",
"KODKD": "id",
"KODKD": "block_id",
"PLODINA": "crop:name",
"KULTURA_NA": "crop_group",
"LOKALITA_N": "municipality",
"VYMERA": "metrics:area",
}
missing_schemas = {
"properties": {
"block_id": {"type": "string"},
"crop_group": {"type": "string"},
"municipality": {"type": "string"},
}
Expand Down
Loading
Loading