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
Open
ivorbosloper wants to merge 3 commits into
ivorbosloper wants to merge 3 commits into
Conversation
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
This was referenced Sep 17, 2026
m-mohr
reviewed
Sep 17, 2026
| } | ||
| column_migrations = { | ||
| "validFrom": lambda col: pd.to_datetime(col, format="%d.%m.%Y"), | ||
| "declaredArea": lambda col: col.astype(float) * 10_000, # published in hectares |
Contributor
There was a problem hiding this comment.
Isn't this done automatically through area_is_in_ha?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lawi:LPIS-Referenzparzellenare reference parcels, so the title now matchesde_mvandde_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