Answers to: simplify osm file(merge ways)https://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways<p>Hi:
I have a problem about parsing osm file.</p>
<p>A road in openstreetmap will denote by two or three ways(as number indicated 1,2,3 in the attached image).</p>
<p>When i parse the file i will get many ways that denote the same way, but i just want to get one way.</p>
<p>Could you please tell me how to merge those way into one?</p>
<p><img src="http://help.openstreetmap.org/upfiles/1_l8eEaN4.png" alt="OSM"></p>
<p>thanks</p>enWed, 18 May 2016 11:00:02 +0100Answer by Richardhttps://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways/49727<p>Take a look at Skeletron: <a href="https://github.com/migurski/Skeletron">https://github.com/migurski/Skeletron</a></p>RichardWed, 18 May 2016 11:00:02 +0100https://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways/49727Comment by Leo Hsu on Leo Hsu's questionhttps://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49724<p>Thanks for your help</p>Leo HsuWed, 18 May 2016 08:00:37 +0100https://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49724Comment by scai on Leo Hsu's questionhttps://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49723<p>There are already several similar questions, see</p>
<ul>
<li><a href="https://help.openstreetmap.org/questions/43654/finding-and-merging-parallel-ways-that-are-part-of-the-same-street-in-osm-file">https://help.openstreetmap.org/questions/43654/finding-and-merging-parallel-ways-that-are-part-of-the-same-street-in-osm-file</a></li>
<li><a href="https://gis.stackexchange.com/questions/50668/how-can-i-merge-collapse-nearby-and-parallel-road-lines-eg-a-dual-carriageway">https://gis.stackexchange.com/questions/50668/how-can-i-merge-collapse-nearby-and-parallel-road-lines-eg-a-dual-carriageway</a></li>
<li><a href="https://gis.stackexchange.com/questions/98165/how-to-simplify-streets-such-that-seperate-driving-tracks-are-reduced">https://gis.stackexchange.com/questions/98165/how-to-simplify-streets-such-that-seperate-driving-tracks-are-reduced</a></li>
</ul>scaiWed, 18 May 2016 07:49:38 +0100https://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49723Comment by Leo Hsu on Leo Hsu's questionhttps://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49722<p>I need the skeleton of real map, so i want to merge them.</p>Leo HsuWed, 18 May 2016 07:35:30 +0100https://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49722Comment by aseerel4c26 on Leo Hsu's questionhttps://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49719<p>maybe it would be more helpful for you if you would describe why you want to do that.</p>aseerel4c26Tue, 17 May 2016 20:56:03 +0100https://help.openstreetmap.org/questions/49718/simplify-osm-filemerge-ways#49719