[mkgmap-dev] error in NumberPreparer?
From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Apr 22 08:11:11 BST 2015
Hi Steve, I think that means that the current code is not correct. HousenumberGenerator may create Numbers with O,1,x,N,0,0 When I change Numbers to set default -1 for the start and end values the resulting img file changes and NetDisplay followed by grep Numbers shows different numbers, e.g. | | | Numbers 43,O,1,1,N,-1,-1 | | | Numbers 44,N,-1,-1,E,36,36 instead of the trunk result: | | | Numbers 43,O,-31,-31,N,-1,-1 | | | Numbers 44,N,-1,-1,E,6,4 Besides that the img file with defaults -1 is a bit smaller, so I think we should change that in trunk (with the attached patch) Gerd > Date: Wed, 22 Apr 2015 00:06:56 +0100 > From: steve at parabola.me.uk > To: mkgmap-dev at lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] error in NumberPreparer? > > Hi Gerd > > > In normal processing, the fields are 0 when style is NONE, > > but NumberRangeTest.java sets them to -1 and this really produces different > > bit streams in some cases, e.g. when iter == 306 > > the following test case is generated: > > [0,O,9,7,O,7,5, 1,B,8,2,O,3,5, 2,O,1,1,N,-1,-1] > > I had time to look into this. The ones that go wrong are where there > is 'O' on the left beginning with 1, and 'N' on the right. > As in your example above. > > It turns out that using -1 as the default value of getRightStart() > is required or else the value of zero must be treated specially > in equalizeBases() by adding 'if (right.targetStart == 0) return false;' > > ..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/20150422/9c22b68b/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: numbers-default.patch Type: application/octet-stream Size: 682 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150422/9c22b68b/attachment.obj>
- Previous message: [mkgmap-dev] error in NumberPreparer?
- Next message: [mkgmap-dev] error in NumberPreparer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list