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 @@ -41,6 +41,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
- ES-AN: CD_USO is the land-use column, with the determination date from the variant year
- HR: editions 2011-2024; the archives leave their CRS undefined and carry ARKOD's own parcel id, which the row index used to overwrite
- NL: the full BRP series 2009-2026 — the 2009-2019 zips hold a FileGDB with differently prefixed columns, 2020 is a GeoPackage, and the download moved to a new PDOK location
- SI: editions back to 2019 — the archives differ per campaign in their folder layout, CRS declaration, column names and crop-code padding
Expand Down
6 changes: 4 additions & 2 deletions fiboa_cli/datasets/es_an.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ class ANConverter(ESBaseConverter):
"crop:name_en": "crop:name_en",
}

use_code_attribute = "CD_USO"
area_is_in_ha = False
area_calculate_missing = True
use_variant_as_determination = True

column_additions = ESBaseConverter.column_additions | {
"determination:datetime": "2024-03-28T00:00:00Z",
column_migrations = {
"ID_RECINTO": lambda col: col.astype("int64"),
}

missing_schemas = {
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"ie",
"es_cat",
"es_cl",
"es_an",
"es_cm",
"es",
"nz",
Expand Down
Loading