<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div id="rwhMsgHeader">Hi Gerd,</div>
<div><br>
</div>
<div>the FileExistsException problems (or their reporting) may have
been introduced later.</div>
<div><br>
</div>
<blockquote>
<div>felix@TCHd:~/Downloads/mergetest/GP$ mkgmap --verbose
--input-file=osm_deh-to_5402.img
--input-file=osm_deh-tw_5401.img --gmapsupp<br>
Using /bin/java to execute mkgmap.<br>
Time started: Sat Jul 15 12:56:12 CEST 2023<br>
Number of MapFailedExceptions: 0<br>
Number of ExitExceptions: 0<br>
Time finished: Sat Jul 15 12:56:13 CEST 2023<br>
Total time taken: 1 second</div>
<div><br>
</div>
<div>felix@TCHd:~/Downloads/mergetest/GP$ mkgmap --version<br>
Using /bin/java to execute mkgmap.<br>
Time started: Sat Jul 15 13:00:43 CEST 2023<br>
4262 [oldstable Debian]<br>
</div>
<div><br>
</div>
<div>felix@TCHd:~/Downloads/mergetest/GP$ java -jar
'/home/felix/AA-Poolm/osm/Soft/mkgmap-r4896/mkgmap.jar'
--verbose --input-file=osm_deh-to_5402.img
--input-file=osm_deh-tw_5401.img --gmapsupp<br>
Mkgmap version 4896<br>
Time started: Sat Jul 15 13:01:43 CEST 2023<br>
Number of MapFailedExceptions: 0<br>
WARNUNG (global): Could not copy MAKEGMAP.MPS
uk.me.parabola.imgfmt.FileExistsException: File MAKEGMAP.MPS
already exists<br>
WARNUNG (global): Could not copy MAKEGMAP.MPS
uk.me.parabola.imgfmt.FileExistsException: File MAKEGMAP.MPS
already exists<br>
WARNUNG (global): Could not copy EDGE_DEH.TYP
uk.me.parabola.imgfmt.FileExistsException: File EDGE_DEH.TYP
already exists<br>
Number of ExitExceptions: 0<br>
Time finished: Sat Jul 15 13:01:44 CEST 2023<br>
Total time taken: 739 ms<br>
</div>
<div><br>
</div>
</blockquote>
<blockquote>
</blockquote>
<div>//Felix</div>
<p></p>
<div class="moz-cite-prefix">On 15.07.23 08:46, Gerd Petermann
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:GV1PR08MB7708743231680CA68B9B80859E35A@GV1PR08MB7708.eurprd08.prod.outlook.com">
<pre class="moz-quote-pre" wrap="">Hi all,
OK, seems I was wrong. Felix Herwegh contacted me in a private mail and he has an example where mkgmap is able to merge two gmapsupp.img files. With his examples mkgmap just writes some warnings about duplicated files:
WARNUNG (global): Could not copy MAKEGMAP.MPS uk.me.parabola.imgfmt.FileExistsException: File MAKEGMAP.MPS already exists
WARNUNG (global): Could not copy MAKEGMAP.MPS uk.me.parabola.imgfmt.FileExistsException: File MAKEGMAP.MPS already exists
WARNUNG (global): Could not copy SAMEORDE.TYP uk.me.parabola.imgfmt.FileExistsException: File SAMEORDE.TYP already exists
So, yes, there is code to read the content of a gmapsupp and copy it to the output gmapsupp, but this code only seems to work well when the last file in the input gmapsupp is the special file MAKEMAP.MPS
I am not sure if this is wanted or just a flaw in the implementation. I am also not sure how well the result really works, and there are also other problems, e.g. the option --index doesn't work.
The code was added in 2009 with r1443: <a class="moz-txt-link-freetext" href="https://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=1443">https://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=1443</a>
Attached quick hack shows that it is very easy to change the code in mkgmap to be more tolerant regarding the oder of the files within the gmapsupp, but I have no idea about the restrictions that apply and how to handle the case that the input gmapsupp files contain equally named TYP files with different content or indexes etc.
So, not sure what to do here. Looks like a can of worms...
Gerd
________________________________________
Von: Gerd Petermann <a class="moz-txt-link-rfc2396E" href="mailto:gpetermann_muenchen@hotmail.com"><gpetermann_muenchen@hotmail.com></a>
Gesendet: Donnerstag, 13. Juli 2023 22:41
An: Development list for mkgmap
Betreff: AW: [mkgmap-dev] Trouble with merging IMG files (for Garmin)
What you try is not implement.
You simply have to understand that mkgmap cannot read data in gmapsupp format. All the mentioned files are in gmapsupp format.
So, either use a different tool or maybe split the gmapsupp files first, e.g. with gmaptool.
Gerd
________________________________________
Von: mkgmap-dev <a class="moz-txt-link-rfc2396E" href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk"><mkgmap-dev-bounces@lists.mkgmap.org.uk></a> im Auftrag von Felix Herwegh <a class="moz-txt-link-rfc2396E" href="mailto:mlmmduk@herwegh.de"><mlmmduk@herwegh.de></a>
Gesendet: Donnerstag, 13. Juli 2023 22:19
An: Tamas Gal
Cc: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Trouble with merging IMG files (for Garmin)
Hi,
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">so I tried combining [opentopomap] Hungary and Slovenia but then I get again a small 2.5KB file
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Same here. My test were on simple maps without routing and DEM only; maybe its that. Sorry.
//Felix
</pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
</blockquote>
</body>
</html>