This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

how to identify a split way

0

How can I identify if a new way (created tag element) is a result of a split way. What I would like to ultimately to do is flag all ways where nothing changed but only a split occured

asked 26 Jun '19, 13:42

Vincze's gravatar image

Vincze
15113
accept rate: 0%


One Answer:

3

It is not possible to do this "cleanly", but the following logic works in most cases:

  • if the changeset contains one or more new ways (version=1) and one or more modified ways (version > 1),
  • retrieve previous version of the modified way(s) and check if nodes have been removed from the way;
  • check if any of new ways contain the nodes that were removed from another way AND old and new way share one node;
  • if yes, it's a split.

Splits into multiple ways (and the reverse, the merging of ways) can be handled similarly.

answered 26 Jun '19, 14:29

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

any chance you got some python code to get me started with this? is there any project that you know of having this thing implemented?

(27 Jun '19, 13:06) Vincze