I have some code in shp-to-osm that does "glomming", but it's really not any smarter than storing all node locations in memory and check for overlaps. I think ogr2osm does something similar. Neither are in a good position to help with an existing OSM file, though.<br>
<br><div class="gmail_quote">On Mon, Dec 5, 2011 at 7:13 PM, Josh Doe <span dir="ltr"><<a href="mailto:josh@joshdoe.com">josh@joshdoe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm trying to convert a Shapefile of my county's streets to OSM (not<br>
for mass imports, trust me), but every street is broken at<br>
intersections so there are often dozens or more segments that should<br>
be joined. Anyone have scripts or code to perform this sort of<br>
way-merging? I did come across Frederik's <a href="http://merge-ways.pl" target="_blank">merge-ways.pl</a> script, but I<br>
didn't have much luck with it and it seems to be designed for</blockquote></div>