-
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
Allow grouping of areas as one concept #127
Comments
One alternative/possibility is that we could already have this grouping, in that areas can have parents, with no generational constraints otherwise. So you could have:
One big (the main?) user that has this issue is FixMyStreet – it would certainly be possible to move to these parent identifiers if they existed, and this would provide greater stability for the next council GSS ID change (when because we didn't want to change FixMyStreet, we bodged MapIt to put the new boundary in the old ID and the old boundary in a new ID, I know). If this solution was acceptable, it would be much more straightforward than anything else. And following on from #235, you could have a CA be a parent of those stable identifiers (for that particular case). For the more general #7, e.g. police areas, an issue there is that the police area is defined as a combination of councils (ie. their stable identifiers, whatever their boundary may be) – so you would want that to be possible to prevent having to update them whenever a council GSS changed. One option – multiple "parents"; another option, a separate combination lookup table of some sort. |
Except what about someone wanting the wards of Glasgow, holding Glasgow's 'stable' ID? They should be able to call children on it and get them, surely. So that leads to:
Which means that someone making a children call for Glasgow (with no type filter) would get two Glasgow, which makes little sense to a casual user, or is it okay? It's probably not okay. |
Naive question: Isn’t it as simple as having these conceptual areas as described above but making them report only as one area depending on the generation that is queried? This would mean that for any given generation the Area can only have one child. Maybe it’s even cleaner to don’t call the new concept "Area" and represent it as an entirely different entity. |
In my occasional return to this topic, how about this:
This is basically the solution as in the original ticket I wrote, I think, so, umm, hohum.
What have I missed. As a worked example:
Glasgow had ward boundary changes at generation 31, and small self changes at generations 15 and 36. The authority concept is "Glasgow City Council", and let us assume there is a "South Scotland police area" covering Glasgow, Edinburgh and some other councils. |
What we really want is for the Area model to be called Geometry (the Geometry model exists because old versions of postgres were very bad at multipolygon PinP; it could be called Polygon I guess), and a new Area model to exist which can refer to multiple Geometrys. This would allow e.g. use of OpenStreetMap relation IDs to consistently refer to an area, and allow council boundary changes in the UK (as opposed to ward boundary changes within a council) to maintain the same identifier for the council more easily.
The text was updated successfully, but these errors were encountered: