<div dir="ltr"><div>Hi Ticker,</div><div><br></div><div>thanks for your answer</div>If the gmapsupp.img is 2GB - will this be kinda instant or will it rewrite the full gmapsupp.img from scratch?<div><br></div><div>It would be great if the standard mkgamp.jar could include that typ change functionality (I guess this could be easy to add - as mkgmap knows how to build the gmapsupp.img - maybe Andrez could help/add here ot have the most needed functionality of gmt for end users available for Mac?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 23 Jul 2021 at 19:06, Ticker Berkin <<a href="mailto:rwb-mkgmap@jagit.co.uk">rwb-mkgmap@jagit.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
The mkgmap / display tool has a function to extract all the components<br>
from a gmapsupp.img and another function to take components and build a<br>
composite image.<br>
<br>
You'll need to get the sources from svn - see:<br>
<br>
<a href="https://www.mkgmap.org.uk/mkgmap/display" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mkgmap/display</a><br>
<br>
and build it.<br>
<br>
In an empty directory, my unix command to extract is<br>
<br>
$ java -Xmx1540M -ea -classpath \<br>
/myMkgmap/display/trunk/build/classes:\<br>
/myMkgmap/svn/trunk/build/classes:\<br>
/myMkgmap/svn/trunk/lib/compile/fastutil-6.5.15-mkg.1b.jar:\<br>
/myMkgmap/svn/trunk/lib/compile/osmpbf-1.3.3.jar:\<br>
/myMkgmap/svn/trunk/lib/compile/protobuf-java-2.5.0.jar \<br>
 test.ExtractFile ../gmapsupp.img<br>
<br>
Adjust paths as necessary to reference the display build and your<br>
standard mkgmap build.<br>
<br>
To reconstitute, adjust the contents of the folder to have the new TYP,<br>
then use the same command as above but replace the last line with, eg:<br>
 test.ZipFile ../newgmap.img *<br>
<br>
This will probably change the order of the components and I've no idea<br>
if this matters, but, if it does, give an explicit list, derived from<br>
the output of ExtractFile, instead of *<br>
<br>
Ticker<br>
<br>
On Fri, 2021-07-23 at 16:08 +0300, Felix Hartmann wrote:<br>
> Hi - is there any tool available to change the .typ-file in a<br>
> gmapsupp.img on the Mac OS X Big Sur or newer?<br>
> <br>
> As gmt_osx is not gonna be updated to x64 - I wonder if there is an<br>
> alternative.<br>
> Or maybe could this function be added to mkgmap?<br>
> <br>
> I would imagine a call java mkgmap.jar --change-typ gmapsupp.img<br>
> newtyp.typ<br>
> (so remove all existing .typfiles in the gmapsupp.img and replace<br>
> them with newtyp.typ - for gmapsupp.img consisting of several maps<br>
> this would be more complicated - I do not feel that is needed).<br>
> <br>
> Plus maybe the option to join several gmapsupp.img files into a new<br>
> bigger one (only important for very old devices).<br>
> <br>
> -- <br>
> Felix Hartman - Openmtbmap.org & VeloMap.org<br>
> <br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
> <a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div><br></div></div></div></div></div></div>