[mkgmap-dev] random housenumbers
From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Jan 8 10:28:59 GMT 2015
Hi Steve, maybe you can help me with that? I seem to have no img file with an example. I guess we have to 1) add a flag to RouteNode which says whether or not the node is used for routing. A RouteNode for housenumbers will have arcs like a normal one, but they are only used to allow placing the housenumber infos. 2) change RoadDef.writeNod2() to create the bitstream using this flag. 3) What happens with the complex routing routines in RouteNode, e.g. addArcsToMajorRoads() ? Do we have to add arcs to the "housenumber nodes" ? 4) In StyledConverter I see a call road.setStartsWithNode(nodeIndices.get(0) == 0); which seems to always set the bit to true. The code in RoadHelper may be work different. Do you have an example that explains this? Attached patch shows how I intend to implement the random housenumbers, it doesn't do anything useful yet. Maybe you can tell me if I am on the right way? Gerd > Date: Mon, 22 Dec 2014 10:17:27 +0000 > From: steve at parabola.me.uk > To: mkgmap-dev at lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] random housenumbers > > Hi Gerd > > > how can I make sure that Garmin programs do not try to > > interpolate housenumbers for places where this is not > > wanted? > > > > Is it possible that there is another attribute besides > > ODD,EVEN,BOTH ? > > No, you just have a range consisting of the one number to that same > number. eg E,42,42. > > If there are several random numbers on a segment of road then you > would have to introduce new flagged nodes at appropriate places along > the road. > > By flagged node I mean that it has what we call the extra-bit set. > See LinePreparer. Currently I believe that we only set this bit > on road junction nodes, but it can be set on any point in the road. > Unfortunately there may be assumptions in the routing code about usage > of the extra bit, since we didn't know that until house numbers. The > house number code should be OK in that respect though. > > Also when adding extra nodes along the road you would have to be > careful that they are not removed by any of the simplifying filters. > > ..Steve > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150108/9779457d/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: route-nodes-v0.patch Type: application/octet-stream Size: 3147 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150108/9779457d/attachment.obj>
- Previous message: [mkgmap-dev] prob in africa map 3
- Next message: [mkgmap-dev] random housenumbers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list