[OSM-talk] Suggested mass edits
pierzenh at yahoo.fr
Sun Apr 18 18:38:10 UTC 2021
It is not clear if you only want to delete relations that never had members. We need to be carefull about mechanical edits if a prior contributor deleted the members.
You need a tool to look at the previous state of relations and try to repair it. History tools might help. See for example https://osmlab.github.io/osm-deep-history/
Le dimanche 18 avril 2021 12 h 53 min 34 s UTC−4, Martin Machyna <machyna at gmail.com> a écrit :
I had an idea that came during my work on a buildings import. I would like to clear/fix improperly created/deconstructed relations. This would include:
1) Remove relations that have no members, nor are members of a relation themselves.
relation[type](if: count_members() == 0);
rel(br) -> .parents;
(._; - rel(r.parents););
2) Remove type=multipolygon from ways.
talk mailing list
talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk