[OSM-talk] Suggested mass edits

Martin Machyna machyna at gmail.com
Sun Apr 18 16:43:04 UTC 2021


Hi everyone,

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.

[out:json][timeout:250];
relation[type](if: count_members() == 0);
rel(br) -> .parents;
(._; - rel(r.parents););
out ids;

2) Remove type=multipolygon from ways.

[out:json][timeout:250];
way[type=multipolygon];
out ids;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20210418/c8a5f558/attachment.htm>


More information about the talk mailing list