logo separator

[mkgmap-dev] Background in polish format reader

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Mar 13 08:24:56 GMT 2020

Hi Andrzej,

please describe the problem that is solved with this patch. Does it mean that the background polygon is not added to all levels without the patch?

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej at poczta.onet.pl>
Gesendet: Donnerstag, 12. März 2020 16:25
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: [mkgmap-dev] Background in polish format reader

Hi,

the following quote from cGPSmapper describes peculiarities of command
"Background=Y":

If there is only one object set as the background, then the
EndLevel is automatically set to 9.
If there is no background object, or more than one, then the
EndLevel is not changed.

As I understand, background is a special object for cGPSmapper. If there
is only single background in a source, then compiler can modify EndLevel
value.

Mkgmap doesn't change EndLevel. I prepared a patch, that simply extends
EndLevel for any background object, which contains only "Data0=" layer.
I hope this should work for most cases.

Proper solution would be to count all background objects and
conditionally modify single background after reading an entire source file.

--
Best regards,
Andrzej


More information about the mkgmap-dev mailing list