[OSM-talk] Suggested mass edits

Clifford Snow clifford at snowandsnow.us
Sun Apr 18 22:51:07 UTC 2021


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> 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
> https://lists.openstreetmap.org/listinfo/talk
>


-- 
@osm_washington
www.snowandsnow.us
OpenStreetMap: Maps with a human touch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20210418/db12724f/attachment-0001.htm>


More information about the talk mailing list