logo separator

[mkgmap-dev] Why are all the un-named peaks called '6140565'?

From Steve Ratcliffe steve at parabola.me.uk on Mon Mar 15 15:58:48 GMT 2010

Hi Mark

>> It may be a clue that nat_ref does not occur in the style file at all.
>> As far as I can tell so far, the problem is happening after style
>> processing. Very strange.
>
> In StyledConverter.elementSetup() if an element doesn't have a name but
> it has a ref (ref|int_ref|nat_ref|etc.) the first ref gets assigned to

Yes, I was thinking that the fact that nat_ref was involved meant that 
it couldn't be anything much to do with ValueBuilder et al.

It turns out that the problem is Labels that are empty but not null. All 
such labels, however generated, show as whatever label was defined right 
after the first empty one.

The attached patch should fix it.

..Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: empty_labels.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20100315/13134fc1/attachment.bin 


More information about the mkgmap-dev mailing list