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

Add UK Electoral Divisions #156

Merged
merged 7 commits into from
Sep 10, 2018
Merged

Add UK Electoral Divisions #156

merged 7 commits into from
Sep 10, 2018

Conversation

chris48s
Copy link
Contributor

This follows on from the conversation started in #152

Done in this PR:

I've started off by adding scripts to create ids from ONS data for:

  • UK Parliament Consitituencies
  • Scottish Parliament Consitituencies
  • Scottish Parliament Regions
  • National Assembly for Wales Consitituencies
  • National Assembly for Wales Regions
  • Combined Authorities
  • Police Force Areas

I look forward to review/feedback on this.

Possible Future Work:

  1. Ongoing maintenance

Inevitably at some point there will be changes to these divisions which we need to account for. The next substantial legislative change to impact these divisions is likely to be this review of UK Parliamentary Consitituencies:

I'm happy to keep on top of this moving forwards.

  1. GSS Code changes

At the moment everything has a current GSS code. These boundaries are relatively stable and change quite infrequently, but many of the divisions in this dataset have had boundary changes at some point and hence it is useful to be able to map a division to >1 GSS codes based on a date range.

I have not attempted to deal with that here but I may look at using the Code History Database to do this as future work.

  1. Add more division ids

As discussed in #152 there is a large body of division identifiers (mainly relevant to local elections) which have some additional complexity. Lets review the best way to manage them in light of future interest/use-cases.

# in England, Wales, Scotland and Northern Ireland
pcon = {
# data from: http://geoportal.statistics.gov.uk/datasets/westminster-parliamentary-constituencies-december-2017-full-extent-boundaries-in-the-uk-wgs84
'url': 'https://opendata.arcgis.com/datasets/5c582cef61d04618928639dd17e4f896_1.csv',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would it be better to commit the source CSV files here and document where they came from instead of linking them directly so that this process is more "reproducible". I can see reason for going either way on this. Happy to take guidance.

@chris48s
Copy link
Contributor Author

chris48s commented Sep 7, 2018

Hi. Any update on this? It would be really useful to get a review from a maintainer on this.

</polite bump>

@jpmckinney
Copy link
Member

@showerst @symroe May I request your review?

@showerst
Copy link
Contributor

showerst commented Sep 7, 2018

Sure, i'll check this over this weekend.

@showerst
Copy link
Contributor

@jpmckinney this all built fine, and the output looks solid to me.

@jpmckinney jpmckinney merged commit 2f09784 into opencivicdata:master Sep 10, 2018
@jpmckinney
Copy link
Member

Thanks!

@symroe
Copy link

symroe commented Sep 10, 2018

🎉 Excellent – I'd just started reviewing (I work with Chris so knew some of what he'd done already). All looks great, and thanks for merging!

@chris48s
Copy link
Contributor Author

thanks, all 👍

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

Successfully merging this pull request may close these issues.

4 participants