[mkgmap-dev] [PATCH v1] remove bogus nodes
From Mark Burton markb at ordern.com on Fri Nov 27 22:03:52 GMT 2009
With the recent reversion of the Table A breakage, it's now useful to post this patch for wider testing as it no longer causes my Nuvi to barf. What it does is remove routing nodes from ways that should never have been put there in the first place. Without this patch, a routable way will have a node for each of its points that are shared by any other way (whether the other ways are routable or not). For example, at the moment, if a way shares its points with a boundary line or shape, each of those points will become nodes. From the routing point of view, that's (essentially) harmless but having extra nodes does take up space and must slow down the routing calculation. It therefore makes sense to remove the bogus nodes. What this patch does is defer the processing of all of the points/lines/shapes until after their types have been computed. Having computed the ways' types we know what's routable and what isn't so nodes only need to be created where routable ways meet. That's the theory, in practice, it produces slightly smaller maps. Whether it actually improves the routing quality is yet to be determined. Obviously, the gain you will see depends on how many bogus nodes are in your maps. All feedback welcome. Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mb-remove-bogus-nodes-v1.patch Type: text/x-patch Size: 8876 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20091127/309b6606/attachment.bin
- Previous message: [mkgmap-dev] Commit: r1409: Add support for generating multiple map objects from a single OSM object.
- Next message: [mkgmap-dev] [PATCH v1] remove bogus nodes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list