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

Historical shapefiles #40

Closed
skvrnami opened this issue Nov 10, 2021 · 4 comments · Fixed by #82
Closed

Historical shapefiles #40

skvrnami opened this issue Nov 10, 2021 · 4 comments · Fixed by #82
Assignees

Comments

@skvrnami
Copy link

Hi,

thanks for your package.
I have a feature request. Some objects such as senatni_obvody, volebni_okrsky and also obce change their boundaries in time. Senate districts due to redistricting, municipalities due to divisions/mergers.
This may cause trouble/inaccuracies when joining a historical data (e.g. electoral results from past elections) and current version of these shapefiles or when doing an analysis of electoral districts over time.
Therefore, it would be great if historical versions of these object were available. (Although I am not sure if ČÚZK or any other entity has such data available).

@jlacko jlacko self-assigned this Nov 10, 2021
@jlacko
Copy link
Owner

jlacko commented Nov 10, 2021

Thanks for the idea! It surely has merit.

Keeping history, in addition to fresh data, is in principle possible, and it is true that the administrative areas keep evolving - the recent Act 51/2020 Sb. aligning okres with ORPs and kraje being a nice example of how fluid the situation is.

On the other hand the current internals of the package and S3 bucket on AWS that stores the pre-processed rds files would not quite fit a time dimension.

Introducing it would be somewhat challenging - but not impossible, mind you. What may he a tougher nut to crack is getting hold of historical data. ČUZK does not have unlimited history; a quick check of their VDP site shows earliest data form 2018 - and the senát is even worse / here the data is maintained by staťák and it follows its own special logic (like non - continous regions, and / or not respecting kraje). There is logic in it, but a very special one and not easy to follow.

I will give it a big, hard thought. It may require a major version update. But it feels like a challenge, and I enjoy that ;-)

@skvrnami
Copy link
Author

Thanks for the consideration.

Yeah, I know that getting the historical data might be tough. However, the unavailability of data on the website does not mean that there are no such data. From my experience with getting historical election data from CZSO, asking them nicely via email works quite well ;)

@jlacko jlacko modified the milestones: JOSS review, 2023 fall release Aug 28, 2023
@jlacko
Copy link
Owner

jlacko commented Aug 28, 2023

While it may not be practical to follow every minor change of RUIAN with an RCzechia release I feel the need for introducing some high value historical datasets.

Most certainly the 1930 census, which was the last one to give a reliable information about Czech citizens of German nationality / ghosts of whom are well visible even in current election datasets.

Perhaps with some of the commie censuses / regions as required & as time allows.

I am choosing to track the delivery under this still unresolved issue.

@jlacko
Copy link
Owner

jlacko commented Aug 28, 2023

Historický GIS will be our friend here...

jlacko added a commit that referenced this issue Oct 28, 2023
@jlacko jlacko linked a pull request Oct 28, 2023 that will close this issue
jlacko added a commit that referenced this issue Oct 29, 2023
* link to raw RUIAN for admin data / resolves #77

* download links for zip codes & KFME grid / relates #77

* pkgdown - prepare for future deployment

* cleaner silnice

* sidestep the pesky mbcsToSbcs failure

* that pesky unicode!

* a more colorful plot of kraje

* align ozymandias and dockerfile

* + přfuk confirmation

* internals of the world, unite!

* helper functions created

* update docs for new internals

* historie in principle working / relates #40

* resolve CI fails on R-devel

* yet another shot at a clean workflow run

* unicode gets no respect

* shorter title for clarity

* update docs of history()

* historie in tests / relates #40

* resolve vignette warning

* date for release 1.12.0 set to 2023-10-29
jlacko added a commit that referenced this issue Oct 29, 2023
* link to raw RUIAN for admin data / resolves #77

* download links for zip codes & KFME grid / relates #77

* pkgdown - prepare for future deployment

* cleaner silnice

* sidestep the pesky mbcsToSbcs failure

* that pesky unicode!

* a more colorful plot of kraje

* align ozymandias and dockerfile

* + přfuk confirmation

* internals of the world, unite!

* helper functions created

* update docs for new internals

* historie in principle working / relates #40

* resolve CI fails on R-devel

* yet another shot at a clean workflow run

* unicode gets no respect

* shorter title for clarity

* update docs of history()

* historie in tests / relates #40

* resolve vignette warning

* date for release 1.12.0 set to 2023-10-29

* resolve winbuilder issues

* resolve codecov issues

* less aggressive testing of envir vars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants