logo separator

[mkgmap-dev] Crash in NodCheck

From Gerd Petermann GPetermann_muenchen at hotmail.com on Tue Jul 7 15:37:26 BST 2020

Hi Steve,

the current code in NodCheck (NodFile.java) stops reading route nodes when 
	    if (low == 0 && flags == 0)
		    return null;
The code in mkgmap may write route nodes where both values are 0. If I got that right this happens when the node is (one of) the last nodes in a route center.
IIGTR the value also depends on the constant NODHeader.DEF_ALIGN
With current mkgmap the nodes in one route center are sorted by position. NodCheck doesn't seem to verify this so I assume there is no need for this order.
Maybe the nodes in Garmin maps have a different order? For example, nodes with flags == 0 could come first?

Gerd


More information about the mkgmap-dev mailing list