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

How to easily, automatically merge multiple, connected lines with the same tags

4

Our localOSM community is in the early stage of an import (Note: We have not uploaded anything yet).

There are several consecutive highways (as lines) whose beginning and ending nodes are the same as the ending and beginning nodes of adjacent lines and these lines have the same tags. See this image as an example

Are there any existing tools that would automatically merge those ways together if they have the same tags? The only way that I know of to fix this is to select all of the lines in JOSM and use the combine tool.

asked 05 Nov '13, 19:24

skorasaurus's gravatar image

skorasaurus
1.4k153137
accept rate: 12%

retagged 08 Nov '13, 20:58

hfst's gravatar image

hfst
30671020


One Answer:

3

While not a complete solution, the way selector plugin should help a bit.

Otherwise, sounds like a good idea for a plugin or even a validator check :)

answered 06 Nov '13, 09:41

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
accept rate: 19%

2

This is great and a very appropriate solution! The only disadvantage is that it does not merge the ways but after they are selected, you can merge them with a single keystroke. :)

(07 Nov '13, 03:10) skorasaurus

Source code available on GitHub .