[OSM-talk] Suggested mass edits

Martin Machyna machyna at gmail.com
Mon Apr 19 14:35:09 UTC 2021


uff.. I see you like to live dangerously :)

But makes sense, I can skip recent changes and get back to them after a 
while to give people a chance to use the relations if they indeed made 
them as a placeholder.


On 18.4.21 6:51 , Clifford Snow wrote:
> Martin,
> One caution, on rare occasions, I've created a relation to hold future 
> elements. These all involved complex boundary relations with many 
> ways. I would exclude any relation that is less than a few days old.
>
> One other suggestion would be to start with small areas to test that 
> the script works as expected.
>
> Best,
> Clifford
>
>
> On Sun, Apr 18, 2021 at 9:47 AM Martin Machyna <machyna at gmail.com 
> <mailto:machyna at gmail.com>> wrote:
>
>     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>
>
>
>
> -- 
> @osm_washington
> www.snowandsnow.us <https://www.snowandsnow.us>
> OpenStreetMap: Maps with a human touch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20210419/bf48f63d/attachment.htm>


More information about the talk mailing list