Mechanical Edits/ZeLonewolf/Remove redundant member way tagging in USA

From OpenStreetMap Wiki
Jump to navigation Jump to search

Page content created as advised on Automated_Edits_code_of_conduct#Document_and_discuss_your_plans.

This edit will remove unneeded boundary=administrative, admin_level=*, and name=* tags that are duplications causing warning in validators.

Who

Mateusz Konieczny using his bot account

Contact

message Mateusz via OSM in English. He will also respond to PMs to the bot account, though messaging his main account is preferable as he will get notifications in OSM editors.

What

Inspect ways which are members of boundary relations, tagged boundary=administrative + admin_level=* + name=*

  • If the name=* of the member way is present and differs from the name=* of the parent relation (for example "Mason-Dixon Line"), do nothing
  • If the name=* of the member way is not present, or is the same as the parent relation:

Why

boundary=administrative + admin_level=* on ways, duplicating boundary=administrative + admin_level=* on relations is an outdated tagging that should be eliminated. (see discussion).

Duplicating this tagging:

  • Repeats information already present in the boundary relation
  • Is not needed for the vast majority of renderers
  • Depending on the combination of tags present, raises validator warnings in JOSM, Vespucci, Osmose and probably also other QA tools
  • Slightly increases the size of boundary objects

Numbers

Unknown, let me know if it is important to someone.

How

(TO-DO) - links to US-specific objects An example (note that way belongs to relations such as [1] [2] [3] [4]):
state before a mechanical edit:

state after a mechanical edit:

Changeset would be described and tagged with tags that mark it as automatic, provide link to discussion approving edit etc

Discussion

TO-DO

International Edits

Repetition

This is a recurring edit and may be made as soon as new tagging like this appears. Triggering a new edit requires human intervention and review so no exact schedule is planned and the bot may stop running at any moment.

Source code

TO-DO

Opt-out

Please write at bot approval thread . Note that in case of opt-out exactly the same edit will be made manually for objects where bot opt-out was used.

See also