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

Warn when boundary relation is no longer closed #8286

Open
ZeLonewolf opened this issue Jan 9, 2021 · 6 comments
Open

Warn when boundary relation is no longer closed #8286

ZeLonewolf opened this issue Jan 9, 2021 · 6 comments
Labels
validation An issue with the validation or Q/A code

Comments

@ZeLonewolf
Copy link

I operate a site that is a data consumer of administrative boundaries. I am seeing a handful of administrative boundaries get broken each day by changesets from iD users, and I am constantly having to go in and fix these boundaries. Often when contacted, the changeset authors noted that there was no warning given and everything "looked fine".

The most common errors are gaps in the boundary and extra segments added to the boundary.

Below are some recent changesets where this issue occurred.

https://www.openstreetmap.org/changeset/96835302
https://www.openstreetmap.org/changeset/97199863
https://www.openstreetmap.org/changeset/97060209

It would be great if there was a better way to detect that a change was made to a boundary relation and do some additional validation to prevent breakages.

@ZeLonewolf
Copy link
Author

Here is an additional case (iD 2.19.5): https://www.openstreetmap.org/changeset/98004483

@1ec5
Copy link
Collaborator

1ec5 commented Jun 21, 2021

The most common errors are gaps in the boundary and extra segments added to the boundary.

Boundaries normally have similar geometry requirements as multipolygons. Multipolygons do enjoy geometry validation, plus inner-outer role validation, though there are situations where iD has only partially downloaded the relation so the validation wouldn’t take place. Boundaries have some additional complications: if part of the boundary is disputed, there will be some redundant outer or inner ways. Also, a boundary relation can contain admin_centre and label nodes.

@1ec5 1ec5 changed the title Inadvertent breaking of administrative boundaries Warn when boundary relation is no longer closed Jul 24, 2021
@1ec5 1ec5 added the validation An issue with the validation or Q/A code label Jul 24, 2021
@ZeLonewolf
Copy link
Author

Issue is still present as of iD 2.20.4:
https://www.openstreetmap.org/changeset/118554695

@natfoot
Copy link

natfoot commented Apr 28, 2022

I use ID mostly for my edits and if I edit and an existing multipolygon (...Node Line Node Line Node Line Node Line Node...) and remove the center node in the multi polygon there is now a hole in the multiploygon. Save. When I save I get no errors that the multipolygon is now (broken). No warning no errors are being displayed.

@ZeLonewolf
Copy link
Author

An additional case of boundary breakage is when one of the members which should be inner is outer (or vice versa), for example, in this changeset.

@1ec5
Copy link
Collaborator

1ec5 commented Apr 30, 2023

Multipolygons do enjoy geometry validation, plus inner-outer role validation, though there are situations where iD has only partially downloaded the relation so the validation wouldn’t take place.

For boundaries, it’s usually the case that the boundary hasn’t been fully downloaded yet, which would prevent any validator rule from being able to detect a gap, fork, or incorrect role.

#4903 tracks automatically downloading the members of a relation as soon as you select it, which would unblock this feature. #6656 tracks automatically downloading the members of a relation while you use iD, so that hopefully all the members would be available by the time you open the panel. #5420 tracks a button for explicitly downloading all the members at once; perhaps iD could refuse to perform certain risky operations until the user clicks this button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation An issue with the validation or Q/A code
Projects
None yet
Development

No branches or pull requests

3 participants