[OSM-dev] Script to merge ways with identical tags

Mike N niceman at att.net
Tue Dec 6 01:38:27 GMT 2011

On 12/5/2011 8:13 PM, Josh Doe wrote:
> I'm trying to convert a Shapefile of my county's streets to OSM (not
> for mass imports, trust me), but every street is broken at
> intersections so there are often dozens or more segments that should
> be joined. Anyone have scripts or code to perform this sort of
> way-merging? I did come across Frederik's merge-ways.pl script, but I
> didn't have much luck with it and it seems to be designed for
> rendering purposes.

   I wrote a general purpose Glommer last year in C# / .NET Visual 
Studio 2010 that operates on OSM files and does just what you are 
looking for - it combines ways which have identical tags.   Let me know 
if you're interested and I'll arrange to send it.

More information about the dev mailing list