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 pct_regions object #17

Closed
Robinlovelace opened this issue Mar 9, 2019 · 2 comments
Closed

Add pct_regions object #17

Robinlovelace opened this issue Mar 9, 2019 · 2 comments
Assignees

Comments

@Robinlovelace
Copy link
Member

I'm up for doing this one. Was thinking of creating look-up between local authorities and our regions, that would be useful and is probably in our code somewhere already.

@Robinlovelace Robinlovelace self-assigned this Mar 9, 2019
@Robinlovelace
Copy link
Member Author

Heads-up @layik here's a reprex that gets them in a decent and suitably compressed form:

pct_regions = sf::read_sf("https://github.com/npct/pct-shiny/raw/master/regions_www/pct_regions_highres.geojson")
pryr::object_size(pct_regions)
#> 458 kB
pct_regions = rmapshaper::ms_simplify(pct_regions, keep = 0.1,)
pryr::object_size(pct_regions)
#> 81.8 kB
pct_regions = pct_regions[2]
plot(pct_regions)

Created on 2019-03-11 by the reprex package (v0.2.1)

Data source: https://github.com/npct/pct-shiny/blob/master/regions_www/pct_regions_highres.geojson

@layik
Copy link
Collaborator

layik commented Mar 11, 2019

Awesome @Robinlovelace thanks!

@layik layik closed this as completed in 6b67a11 Mar 11, 2019
layik added a commit that referenced this issue Mar 11, 2019
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

No branches or pull requests

2 participants