assertion in mdrx2 in housenumber2 branch

Hi Steve, when creating the index for multiple files I see now an assertion from line 45: assert street.getMapIndex() == street.getCity().getMapIndex() : street.getMapIndex() + "/" + street.getCity().getMapIndex(); I guess the code is not yet prepared for roads with more than one city, but I don't understand it yet. Do you have a hint what to change here? Gerd

Hi Steve, I think I found a bug in the code that exists also in trunk. See change in r3566. The problem occurs when a single map contains two cities with equal name and region/country e.g. two times Laubach in Hessen/Germany: node 104505800,node 240031988 The method() Mdr5.preWriteImpl() sorts all cities and adds only one entry for these two cities because they are "equal", but the roads can contain a reference to the other city object. I do not yet understand why the problem occurs only in the branch. Is this kind of bad luck? Gerd From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Date: Mon, 4 May 2015 19:48:01 +0200 Subject: [mkgmap-dev] assertion in mdrx2 in housenumber2 branch Hi Steve, when creating the index for multiple files I see now an assertion from line 45: assert street.getMapIndex() == street.getCity().getMapIndex() : street.getMapIndex() + "/" + street.getCity().getMapIndex(); I guess the code is not yet prepared for roads with more than one city, but I don't understand it yet. Do you have a hint what to change here? Gerd _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Steve, sorry for the noise, the problem was in the code that writes the img files. See changelog for r3567. Gerd From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Date: Tue, 5 May 2015 10:59:12 +0200 Subject: Re: [mkgmap-dev] assertion in mdrx2 in housenumber2 branch Hi Steve, I think I found a bug in the code that exists also in trunk. See change in r3566. The problem occurs when a single map contains two cities with equal name and region/country e.g. two times Laubach in Hessen/Germany: node 104505800,node 240031988 The method() Mdr5.preWriteImpl() sorts all cities and adds only one entry for these two cities because they are "equal", but the roads can contain a reference to the other city object. I do not yet understand why the problem occurs only in the branch. Is this kind of bad luck? Gerd From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Date: Mon, 4 May 2015 19:48:01 +0200 Subject: [mkgmap-dev] assertion in mdrx2 in housenumber2 branch Hi Steve, when creating the index for multiple files I see now an assertion from line 45: assert street.getMapIndex() == street.getCity().getMapIndex() : street.getMapIndex() + "/" + street.getCity().getMapIndex(); I guess the code is not yet prepared for roads with more than one city, but I don't understand it yet. Do you have a hint what to change here? Gerd _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Gerd Petermann
-
Steve Ratcliffe