-
Notifications
You must be signed in to change notification settings - Fork 88
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
Error due to WPC areas in May 2022 boundary line data #385
Comments
Seems like in the new shape files the if area_code.startswith('WP'):
area_code = 'WA' + area_code[2:] to |
We imported 2022-05 Boundary-Line without receiving this error, so I am confused! And hoping I haven't broken something :-/ Thanks for letting us know. Ah, I guess as we had existing data with the same ONS GSS code, it matched on that and so did not have to try to create a new area. |
So if they have renamed WAC and WAE to WPC and WPE (obliquely referenced in the release notes as a Welsh Parliament name change, but not in a way that meant I realised), question is whether we should maintain them as WAC/WAE (as your change would do), or add them as new Types. Seems silly to break WAC/WAE for no reason (it's not even as if any boundaries have changed), so your idea sounds good to me unless I've missed something. (We'd already renamed the descriptions of WAC/WAE to use Senedd in our MapIt some time ago.) |
Though should we have done the same with EUR->ER for the English regions, hmm. Guess too late there. Also if you don't know, North Ayrshire and Arran WMC is missing from the new Boundary-Line. |
@dracos Thanks for confirming that that’s indeed a good fix … and also for the info about the WMCs. I guess you just had to raise the generation to get them from an earlier import, right? Seems I also need to wrap my brain around adding the new councils (Cumbria, Somerset, …). As the new areas seem to be supersets of the existing ones this should be easily scriptable. |
Yes, that's how I noticed, when there was one WMC left in the old generation :) Yeah, if you need them sooner, that's how you'd have to do it, I think (might eventually get around to doing #7 someday!). They'll then be in the May 2023 Boundary-Line, it sounds like. #386 - thanks for the suggestion, I decided probably better to be explicit about what's being replaced, just in case. |
When doing a fresh install with the May 2022 boundary line data I get an error during the import:
It seems there is no area type for WPC.
The text was updated successfully, but these errors were encountered: