Open ZeLonewolf opened 3 years ago
Boundary relations should have the role of
inner
,outer
,label
, oradmin_centre
.
subarea
is also common. There’s some disagreement about whether it’s appropriate, but it hasn’t been formally documented as being deprecated.
No warning would be shown to the user.
This is reminiscent of the existing warning (with two suggested fixes) when a multipolygon relation member is missing a role:
It would make sense to adapt this validator rule to boundary relations. This should be more straightforward than https://github.com/openstreetmap/iD/issues/8286#issuecomment-865144022, because there wouldn’t be any need to know about any other boundary relation members.
iD should prevent the user from changing boundary relation member roles to anything other than the four values above.
Strong #2014 vibes from this one.
In this case we are showing that if you edit and existing relation and there is already role errors that ID does not show those errors or warnings. Example: https://youtu.be/IaE4XDTd3l8
This issue exists in the Multiploygon relations as well.
This issue exists in the Multiploygon relations as well.
Can you open a separate issue about this and include full steps to reproduce? There is a validation rule about missing roles in multipolygon relations that normally works, whereas this feature appears to be unimplemented for boundary relations:
https://github.com/openstreetmap/iD/blob/ce136d0144487bc3c8fb569910958865860559a3/modules/validations/missing_role.js#L22 https://github.com/openstreetmap/iD/blob/ce136d0144487bc3c8fb569910958865860559a3/modules/osm/relation.js#L244-L246
Currently, iD will allow a user to upload a boundary relation member with a blank role. Boundary relations should have the role of
inner
,outer
,label
, oradmin_centre
.Steps to recreate:
No warning would be shown to the user. iD should prevent the user from changing boundary relation member roles to anything other than the four values above.