[OSM-talk] Suggested mass edits

Martin Machyna 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 
> https://osmlab.github.io/osm-deep-history/ 
> <https://osmlab.github.io/osm-deep-history/>
>
> Pierre
>
>
> 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.
>
> [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;
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org <mailto:talk at openstreetmap.org>
> https://lists.openstreetmap.org/listinfo/talk 
> <https://lists.openstreetmap.org/listinfo/talk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20210418/d2979ef9/attachment.htm>


More information about the talk mailing list