Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGS are stored as integers and missing leading zeros #1193

Open
1 of 2 tasks
JonasGilg opened this issue Jan 17, 2025 · 0 comments
Open
1 of 2 tasks

AGS are stored as integers and missing leading zeros #1193

JonasGilg opened this issue Jan 17, 2025 · 0 comments
Labels
class::bug Bugs found in the software loc::data handling This issue concerns any kind of data handling. prio::moderate The priority of this task is moderate.

Comments

@JonasGilg
Copy link
Contributor

Bug description

A lot of places are using the AGS to store information related to regions. In code integers are used to represent these ids, like here:

This is wrong, as leading zeros are vanishing. The leading zeros are part of the AGS. Valid AGS can only have lengths of 2, 3, 5 and 8. The first two digits represent the federal state starting from 01 (Schleswig-Holstein) and ending at 16 (Thuringia).

For the first nine federal states this has led to many errors, when working with district data, as public datasets always contain the leading zeros, but exported data of memilio is missing them.

Version

Any

To reproduce

Relevant log output

Add any relevant information, e.g. used compiler, screenshots.

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project
@JonasGilg JonasGilg added class::bug Bugs found in the software loc::data handling This issue concerns any kind of data handling. prio::moderate The priority of this task is moderate. labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class::bug Bugs found in the software loc::data handling This issue concerns any kind of data handling. prio::moderate The priority of this task is moderate.
Projects
None yet
Development

No branches or pull requests

1 participant