logo separator

[mkgmap-dev] Echange .typ-file in gmapsupp.img on Mac OS x 11 or newer?

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Fri Jul 23 17:06:35 BST 2021


The mkgmap / display tool has a function to extract all the components
from a gmapsupp.img and another function to take components and build a
composite image.

You'll need to get the sources from svn - see:

and build it.

In an empty directory, my unix command to extract is

$ java -Xmx1540M -ea -classpath \
/myMkgmap/svn/trunk/lib/compile/protobuf-java-2.5.0.jar \
 test.ExtractFile ../gmapsupp.img

Adjust paths as necessary to reference the display build and your
standard mkgmap build.

To reconstitute, adjust the contents of the folder to have the new TYP,
then use the same command as above but replace the last line with, eg:
 test.ZipFile ../newgmap.img *

This will probably change the order of the components and I've no idea
if this matters, but, if it does, give an explicit list, derived from
the output of ExtractFile, instead of *


On Fri, 2021-07-23 at 16:08 +0300, Felix Hartmann wrote:
> Hi - is there any tool available to change the .typ-file in a
> gmapsupp.img on the Mac OS X Big Sur or newer?
> As gmt_osx is not gonna be updated to x64 - I wonder if there is an
> alternative.
> Or maybe could this function be added to mkgmap?
> I would imagine a call java mkgmap.jar --change-typ gmapsupp.img
> newtyp.typ
> (so remove all existing .typfiles in the gmapsupp.img and replace
> them with newtyp.typ - for gmapsupp.img consisting of several maps
> this would be more complicated - I do not feel that is needed).
> Plus maybe the option to join several gmapsupp.img files into a new
> bigger one (only important for very old devices).
> -- 
> Felix Hartman - Openmtbmap.org & VeloMap.org
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

More information about the mkgmap-dev mailing list