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

[ISSUE] government boundary data resource is down #9

Open
Robinlovelace opened this issue Dec 8, 2022 · 10 comments
Open

[ISSUE] government boundary data resource is down #9

Robinlovelace opened this issue Dec 8, 2022 · 10 comments

Comments

@Robinlovelace
Copy link
Collaborator

This file is down: https://opendata.arcgis.com/datasets/0c09b7cde8b44c4ab6e2a1e47a91e400_0.geojson

So frustrating that ESRI can remove endpoints at will grrrr heads-up @FedericoBotta any ideas?

@FedericoBotta
Copy link
Collaborator

Yes, just noticed that too - trying to see if we can retrieve the boundaries from anywhere else! I wonder if the file will come back online or it's been taken down forever...

@FedericoBotta
Copy link
Collaborator

The LSOA boundaries are also available here, but still trying to find a URL to download the file automatically:

https://geoportal.statistics.gov.uk/datasets/ons::lsoa-dec-2011-boundaries-super-generalised-clipped-bsc-ew-v3/explore?location=52.707615%2C-2.489798%2C8.00

There's also an API, but I need to work out exactly how it works - it looks like it may only be able to return 2,000 LSOAs at a time, which is not ideal since there's over 30,000 of them. Will look more into this tomorrow.

@Robinlovelace
Copy link
Collaborator Author

Here's a reliable endpoint for LSOA boundaries, with various PCT variables: https://github.com/npct/pct-outputs-national/raw/master/school/lsoa/z_all.geojson

@Robinlovelace
Copy link
Collaborator Author

@FedericoBotta
Copy link
Collaborator

Maybe I'm misunderstanding the code, but it looks like you put the new LSOA link in the part of the code which should download LA boundaries?
Agree on using those files though, will update the Python code accordingly.

@Robinlovelace
Copy link
Collaborator Author

Woops, maybe I did 🤦

@Robinlovelace Robinlovelace reopened this Dec 9, 2022
@Robinlovelace
Copy link
Collaborator Author

Heads-up @FedericoBotta progress on this, I found a replacement, but not a perfect one! Please keep me posted if you find the original file...

image

@FedericoBotta
Copy link
Collaborator

For the local authority, you should be able to use the files here:

https://geoportal.statistics.gov.uk/datasets/ons::local-authority-districts-december-2011-full-clipped-boundaries-ew/explore?location=51.600385%2C-1.645495%2C7.93

Again, may need to download and re-upload (I'm working on seeing how the API works, will let you know any progress on it).

@FedericoBotta
Copy link
Collaborator

The Python version now gets the geo data directly via the API both for LA and LSOA with commit e59de1a696ce9e36d309dadda0883e5f0a244d36

@Robinlovelace
Copy link
Collaborator Author

Great work Federico and even better that the data is now available from gov.uk. Thanks for the heads-up, re-opening as a reminder to switch.

@Robinlovelace Robinlovelace reopened this Dec 9, 2022
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