[mkgmap-dev] [PATCH] RoadMerger reverses roads
From WanMil wmgcnfg at web.de on Wed Jan 8 21:55:43 GMT 2014
Attached patch improves the RoadMerger so that roads are reversed when it is required to be merged with another road. A small test increased the mergerate by 2% (avg. 17% => 19% road network reduction). Please check it. The p-road check is not yet implemented. There are also some performance improvements possible which I will post with the next patch version. Unit tests may fail. WanMil > Hi Gerd, > >> Hi WanMil, >> >> two points: >> 1) line 517 is obsolete: >> mergePoints.add(end); >> It just blows up the size of the list and processing time. > > Yep. > I've found another important thing: the road merger can merge many more > ways when it reverses non oneway ways. This should be no problem so > let's do it :-) > I will post another patch. -------------- next part -------------- A non-text attachment was scrubbed... Name: mergeroads_reverse_v2.patch Type: text/x-patch Size: 16506 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140108/aaa7b9fc/attachment.bin>
- Previous message: [mkgmap-dev] RoadMerger
- Next message: [mkgmap-dev] [PATCH] RoadMerger reverses roads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list