NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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.

permanent link

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×91
×89
×34

question asked: 26 Jun '19, 13:42

question was seen: 1,450 times

last updated: 27 Jun '19, 13:06

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum