logo separator

[mkgmap-dev] [Patch] set map-version in img header

From Gerd Petermann GPetermann_muenchen at hotmail.com on Thu Jan 19 16:29:04 GMT 2017

OK,

here is v2 which implements option --custom:
--custom
        Write a different TRE header (1,4,23) instead of (1,3,17). Useful
        for marine maps.
Binary:
http://files.mkgmap.org.uk/download/329/mkgmap.jar

The description is quite cryptic, so please suggest something better.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von rheinskipper1000 at gmx.de <rheinskipper1000 at gmx.de>
Gesendet: Donnerstag, 19. Januar 2017 17:03:01
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] [Patch] set map-version in img header

Permanent change instead of option? This is OK for me, but AFAIK it can change routing behaviour. So option would be saver.



Von: Gerd Petermann<mailto:GPetermann_muenchen at hotmail.com>
Gesendet: Donnerstag, 19. Januar 2017 16:10
An: Development list for mkgmap<mailto:mkgmap-dev at lists.mkgmap.org.uk>
Betreff: Re: [mkgmap-dev] [Patch] set map-version in img header

Hi,

the attached patch changes the TRE header  to 1,4,23 as supposed by Andrzej.
A binary based on r3759 is here:
http://files.mkgmap.org.uk/download/328/mkgmap.jar

I did not test if it has an effect on routing or anything else.
If I here no complains I'll commit the change next monday.

Gerd
________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von rheinskipper1000 at gmx.de <rheinskipper1000 at gmx.de>
Gesendet: Donnerstag, 19. Januar 2017 11:07:01
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] [Patch] set map-version in img header

Thank you for clarifying this.

An option to set these bytes to 1,4,23 would be sufficient for me. Of course I don´t mind the name of the option.

Thanks in advance for implementing.


Von: Andrzej Popowski<mailto:popej at poczta.onet.pl>
Gesendet: Dienstag, 17. Januar 2017 20:58
An: mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
Betreff: Re: [mkgmap-dev] [Patch] set map-version in img header

Hi,

I suggest to call this option --custom or --mpc, instead of --marine.
The patch sets some value in TRE header, which are used by custom maps
created by Garmin's Map Product Creator. Current values used by mkgmap
(1,3,17) are like in City Navigator maps. Values for custom map (1,4,23)
are quite universal, work for hiking, car and marine GPS. Real marine
maps uses again some other values, for example (0,6,29).

I think mkgmap can switch to values (1,4,23) for default and maybe
support option --city-navigator or --car-route to set values (1,3,17).

--
Best regards,
Andrzej
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: treHeader_v2.patch
Type: application/x-download
Size: 849 bytes
Desc: treHeader_v2.patch
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20170119/67ae7242/attachment.bin>


More information about the mkgmap-dev mailing list