diff --git a/CHANGELOG.md b/CHANGELOG.md index 44af12f7..3edbfe27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/fiboa_cli/datasets/es_an.py b/fiboa_cli/datasets/es_an.py index b484f3a0..6fcf1fa9 100644 --- a/fiboa_cli/datasets/es_an.py +++ b/fiboa_cli/datasets/es_an.py @@ -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 = { diff --git a/tests/data-files/convert/es_an/SP25_REC_PROV_04.zip b/tests/data-files/convert/es_an/SP25_REC_PROV_04.zip new file mode 100644 index 00000000..6b3b2e42 Binary files /dev/null and b/tests/data-files/convert/es_an/SP25_REC_PROV_04.zip differ diff --git a/tests/test_convert.py b/tests/test_convert.py index 6783e45e..5317fa3c 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -50,6 +50,7 @@ "ie", "es_cat", "es_cl", + "es_an", "es_cm", "es", "nz",