[OSM-talk] Suggested mass edits
machyna at gmail.com
Sun Apr 18 22:28:44 UTC 2021
I would be scared to do what you are suggesting. We can't know what the
original intention of the previous user were. This could create
duplicate objects or reintroduce data that were meant to be deleted. In
the end more mess then it's worth.
On 18.4.21 2:38 , Pierre Béland wrote:
> 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
> Le dimanche 18 avril 2021 12 h 53 min 34 s UTC−4, Martin Machyna
> <machyna at gmail.com> a écrit :
> 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.
> relation[type](if: count_members() == 0);
> rel(br) -> .parents;
> (._; - rel(r.parents););
> out ids;
> 2) Remove type=multipolygon from ways.
> out ids;
> talk mailing list
> talk at openstreetmap.org <mailto:talk at openstreetmap.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk