logo separator

[mkgmap-dev] [PATCH v5] - merge nodes to remove evil short arcs

From Apollinaris Schoell aschoell at gmail.com on Thu May 28 17:01:56 BST 2009

have checked some of the failing ways and they are all bad data where  
a way is folded once ore more times and the segments share the same  
nodes. one example
http://www.openstreetmap.org/browse/way/28554391
there is probably nothing mkgmap can do.
data is broken and must be fixed. nice to have another tool to verify  
osm data!



On 28 May 2009, at 14:05 , Mark Burton wrote:

>
> v5
>
> as per Marco's suggestion, it now merges points whose coordinates are
> equal rather than testing against a distance.
>
> misc minor tweaks.
>
> ----------
>
> v4
>
> based on r1044
>
> ----------
>
> v3
>
> now requires the --remove-short-arcs option to enable this feature
>
> now deletes consecutive identical points
>
> ----------
>
> v2
>
> now reports OSM ids of merged/replaced nodes (at the cost of using  
> more
> memory while the XML is being converted).
>
> only does this stuff if route option enabled.
>
> ----------
>
> The attached patch is a first stab at a solution for this problem.
>
> Please test.
>
> It is implemented in an iterative fashion and it should terminate  
> after
> a few passes. If 10 passes are executed it will give up, please report
> if you see it doing that.
>
> It would be nice if the diagnostics reported the OSM id of the nodes
> rather than their coordinates but I haven't worked out the best way of
> achieving that yet.
>
> Cheers,
>
> Mark
> <mb-short-arc-fix- 
> v5.patch>_______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev




More information about the mkgmap-dev mailing list