Skip to content

DE-HE: field blocks, the 2023 and 2024 editions, and an id that survives the split - #297

Open
ivorbosloper wants to merge 3 commits into
split/lv-backfillfrom
split/de_he-blocks
Open

ivorbosloper wants to merge 3 commits into
split/lv-backfillfrom
split/de_he-blocks

Conversation

@ivorbosloper

Copy link
Copy Markdown
Collaborator

lawi:LPIS-Referenzparzellen are reference parcels, so the title now matches de_mv and de_sh, which publish the same kind of layer.

The 2023 and 2024 layers have a different schema from 2025: the id is in ID, beside the driver's own feature id, and there is no land cover class and no declared area. The area is measured from the geometry (EPSG:25832, so already m²) and the crop columns are dropped for those editions rather than shipped empty in every row.

A dozen blocks across the three editions are several polygons, so the split moves into migrate() and the parts are numbered.

Based on #286 for split_multipart.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DVx9uQV2QPM8ecPAY3ZjXG

ivorbosloper and others added 3 commits September 17, 2026 11:32
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVx9uQV2QPM8ecPAY3ZjXG
Those two layers put the id in ID, and carry neither a land cover class nor
a declared area, so the area comes from the geometry and the crop columns are
left out rather than shipped empty.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVx9uQV2QPM8ecPAY3ZjXG
A dozen blocks across the three editions are several polygons, and the base
converter checks the ids before it explodes them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVx9uQV2QPM8ecPAY3ZjXG
}
column_migrations = {
"validFrom": lambda col: pd.to_datetime(col, format="%d.%m.%Y"),
"declaredArea": lambda col: col.astype(float) * 10_000, # published in hectares

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this done automatically through area_is_in_ha?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants