logo separator

[mkgmap-dev] assertion in mdrx2 in housenumber2 branch

From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue May 5 09:59:12 BST 2015

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 at hotmail.com
To: mkgmap-dev at 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 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/20150505/af69141a/attachment.html>


More information about the mkgmap-dev mailing list