Trouble with merging IMG files (for Garmin)

Hi all, maybe I got that wrong but I thought I can merge multiple IMG files into a single one with Mkgmap. My problem is that I need a bunch of maps and my Garmin 64s only shows 12 in the map selection. A simple solution to this limitation is merging maps ;) Anyways, I gave Mkgmap a try but I get an error which I don't know how to interpret, since it's missing the input files but they are definitely in the folder. Do I maybe need the original OSM files as input files? In that case, the error message is probably wrong. Here is an example where I try to merge the Hungarian and German map into a single IMG: ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:24 > ls -alh *.img -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany-contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary-contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:32 > java -jar mkgmap.jar --input-file otm-hungary.img --input-file otm-slovenia.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 16:29:45 CEST 2023 SEVERE (Main): : input file '' doesn't exist WARNING (global): Setting max-jobs to 1 SEVERE (Main): : input file '' doesn't exist Number of MapFailedExceptions: 0 WARNING (global): To reduce the run time, consider increasing the amnount of memory available for use by mkgmap by using the Java -Xmx flag to set the memory to more than 32800 MB, providing this is less than the amount of physical memory installed. SEVERE (global): Exiting - if you want to carry on regardless, use the --keep-going option Number of ExitExceptions: 1 Time finished: Thu Jul 13 16:29:45 CEST 2023 Total time taken: 182 ms Any ideas? Thanks in advance, Tom

Hi You need to have ... --input-file=otm-hungary.img ... to fix the file doesn't exist errors. I have no idea if the rest of what you are asking for will work. Ticker On Thu, 2023-07-13 at 16:35 +0200, Tamas Gal wrote:
Hi all,
maybe I got that wrong but I thought I can merge multiple IMG files into a single one with Mkgmap. My problem is that I need a bunch of maps and my Garmin 64s only shows 12 in the map selection. A simple solution to this limitation is merging maps ;)
Anyways, I gave Mkgmap a try but I get an error which I don't know how to interpret, since it's missing the input files but they are definitely in the folder. Do I maybe need the original OSM files as input files? In that case, the error message is probably wrong.
Here is an example where I try to merge the Hungarian and German map into a single IMG:
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:24 > ls -alh *.img -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany- contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary- contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:32 > java -jar mkgmap.jar --input-file otm-hungary.img -- input-file otm-slovenia.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 16:29:45 CEST 2023 SEVERE (Main): : input file '' doesn't exist WARNING (global): Setting max-jobs to 1 SEVERE (Main): : input file '' doesn't exist Number of MapFailedExceptions: 0 WARNING (global): To reduce the run time, consider increasing the amnount of memory available for use by mkgmap by using the Java -Xmx flag to set the memory to more than 32800 MB, providing this is less than the amount of physical memory installed. SEVERE (global): Exiting - if you want to carry on regardless, use the --keep-going option Number of ExitExceptions: 1 Time finished: Thu Jul 13 16:29:45 CEST 2023 Total time taken: 182 ms
Any ideas?
Thanks in advance, Tom _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hello, should work as Ticker says: --input-file=./otm-hungary.img
...but I thought I can merge multiple IMG files into a single one with Mkgmap.
AFAIK you can. Just keep an eye on the typ-files, that is: use identical ones. See: https://www.mkgmap.org.uk/pipermail/mkgmap-dev/2022q4/033990.html //Felix ------------------------------------------------------------------------ *From:* Ticker Berkin [mailto:rwb-mkgmap@jagit.co.uk] *Sent:* Thursday, July 13, 2023 at 5:10 PM *To:* Development list for mkgmap *Subject:* [mkgmap-dev] Trouble with merging IMG files (for Garmin)
Hi
You need to have ... --input-file=otm-hungary.img ... to fix the file doesn't exist errors.
I have no idea if the rest of what you are asking for will work.
Ticker
On Thu, 2023-07-13 at 16:35 +0200, Tamas Gal wrote:
Hi all,
maybe I got that wrong but I thought I can merge multiple IMG files into a single one with Mkgmap. My problem is that I need a bunch of maps and my Garmin 64s only shows 12 in the map selection. A simple solution to this limitation is merging maps ;)
Anyways, I gave Mkgmap a try but I get an error which I don't know how to interpret, since it's missing the input files but they are definitely in the folder. Do I maybe need the original OSM files as input files? In that case, the error message is probably wrong.
Here is an example where I try to merge the Hungarian and German map into a single IMG:
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:24 > ls -alh *.img -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany- contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary- contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:32 > java -jar mkgmap.jar --input-file otm-hungary.img -- input-file otm-slovenia.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 16:29:45 CEST 2023 SEVERE (Main): : input file '' doesn't exist WARNING (global): Setting max-jobs to 1 SEVERE (Main): : input file '' doesn't exist Number of MapFailedExceptions: 0 WARNING (global): To reduce the run time, consider increasing the amnount of memory available for use by mkgmap by using the Java -Xmx flag to set the memory to more than 32800 MB, providing this is less than the amount of physical memory installed. SEVERE (global): Exiting - if you want to carry on regardless, use the --keep-going option Number of ExitExceptions: 1 Time finished: Thu Jul 13 16:29:45 CEST 2023 Total time taken: 182 ms
Any ideas?
Thanks in advance, Tom _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Ah sorry, I overlooked the "=". It now creates a gmapsupp.img but it has the same size as the last input-file (in the example below the otm-germany-contours.img file), so the files are not combined. I then thought that maybe the contour file is not combinable with the other ones, so I tried combining Hungary and Slovenia but then I get again a small 2.5KB file (the last paste block) The maps are all from garmin.opentopomap.org so I think they should be compatible. I also don't see any errors or warning which could be related to the failed merge, other than that "Could not copy MAKEGMAP.MPS", which I don't know what it is. Any ideas? ;-/ ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 21:18:44 > java -jar mkgmap.jar --input-file=otm-hungary.img --input-file=otm-slovenia.img --input-file=otm-germany-contours.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 21:18:48 CEST 2023 WARNING (global): Setting max-jobs to 1 Number of MapFailedExceptions: 0 WARNING (global): To reduce the run time, consider increasing the amnount of memory available for use by mkgmap by using the Java -Xmx flag to set the memory to more than 32800 MB, providing this is less than the amount of physical memory installed. WARNING (global): Could not copy MAKEGMAP.MPS uk.me.parabola.imgfmt.FileExistsException: File MAKEGMAP.MPS already exists Number of ExitExceptions: 0 Time finished: Thu Jul 13 21:18:49 CEST 2023 Total time taken: 747 ms ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 21:18:49 > ls -alh *.img -rw-r--r-- 1 tamasgal staff 126M Jul 13 21:18 gmapsupp.img -rw-r--r-- 1 tamasgal staff 5.0K Jul 13 21:18 osmmap.img -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany-contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary-contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 21:18:10 > java -jar mkgmap.jar --input-file=otm-hungary.img --input-file=otm-slovenia.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 21:18:12 CEST 2023 Number of MapFailedExceptions: 0 Number of ExitExceptions: 0 Time finished: Thu Jul 13 21:18:13 CEST 2023 Total time taken: 312 ms ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 21:18:13 > ls -alh gmapsupp.img -rw-r--r-- 1 tamasgal staff 2.5K Jul 13 21:18 gmapsupp.img
On 13. Jul 2023, at 19:51, Felix Herwegh <mlmmduk@herwegh.de> wrote:
Hello,
should work as Ticker says: --input-file=./otm-hungary.img
...but I thought I can merge multiple IMG files into a single one with Mkgmap.
AFAIK you can. Just keep an eye on the typ-files, that is: use identical ones. See: https://www.mkgmap.org.uk/pipermail/mkgmap-dev/2022q4/033990.html
//Felix From: Ticker Berkin [mailto:rwb-mkgmap@jagit.co.uk] Sent: Thursday, July 13, 2023 at 5:10 PM To: Development list for mkgmap Subject: [mkgmap-dev] Trouble with merging IMG files (for Garmin)
Hi
You need to have ... --input-file=otm-hungary.img ... to fix the file doesn't exist errors.
I have no idea if the rest of what you are asking for will work.
Ticker
On Thu, 2023-07-13 at 16:35 +0200, Tamas Gal wrote:
Hi all,
maybe I got that wrong but I thought I can merge multiple IMG files into a single one with Mkgmap. My problem is that I need a bunch of maps and my Garmin 64s only shows 12 in the map selection. A simple solution to this limitation is merging maps ;)
Anyways, I gave Mkgmap a try but I get an error which I don't know how to interpret, since it's missing the input files but they are definitely in the folder. Do I maybe need the original OSM files as input files? In that case, the error message is probably wrong.
Here is an example where I try to merge the Hungarian and German map into a single IMG:
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:24 > ls -alh *.img -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany- contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary- contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:32 > java -jar mkgmap.jar --input-file otm-hungary.img -- input-file otm-slovenia.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 16:29:45 CEST 2023 SEVERE (Main): : input file '' doesn't exist WARNING (global): Setting max-jobs to 1 SEVERE (Main): : input file '' doesn't exist Number of MapFailedExceptions: 0 WARNING (global): To reduce the run time, consider increasing the amnount of memory available for use by mkgmap by using the Java -Xmx flag to set the memory to more than 32800 MB, providing this is less than the amount of physical memory installed. SEVERE (global): Exiting - if you want to carry on regardless, use the --keep-going option Number of ExitExceptions: 1 Time finished: Thu Jul 13 16:29:45 CEST 2023 Total time taken: 182 ms
Any ideas?
Thanks in advance, Tom _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk <mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk <mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

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 <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Herwegh <mlmmduk@herwegh.de> 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,
so I tried combining [opentopomap] Hungary and Slovenia but then I get again a small 2.5KB file
Same here. My test were on simple maps without routing and DEM only; maybe its that. Sorry. //Felix

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: https://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=1443 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 <gpetermann_muenchen@hotmail.com> 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 <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Herwegh <mlmmduk@herwegh.de> 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,
so I tried combining [opentopomap] Hungary and Slovenia but then I get again a small 2.5KB file
Same here. My test were on simple maps without routing and DEM only; maybe its that. Sorry. //Felix

Hi Gerd, the FileExistsException problems (or their reporting) may have been introduced later. felix@TCHd:~/Downloads/mergetest/GP$ mkgmap --verbose --input-file=osm_deh-to_5402.img --input-file=osm_deh-tw_5401.img --gmapsupp Using /bin/java to execute mkgmap. Time started: Sat Jul 15 12:56:12 CEST 2023 Number of MapFailedExceptions: 0 Number of ExitExceptions: 0 Time finished: Sat Jul 15 12:56:13 CEST 2023 Total time taken: 1 second felix@TCHd:~/Downloads/mergetest/GP$ mkgmap --version Using /bin/java to execute mkgmap. Time started: Sat Jul 15 13:00:43 CEST 2023 4262 [oldstable Debian] 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 Mkgmap version 4896 Time started: Sat Jul 15 13:01:43 CEST 2023 Number of MapFailedExceptions: 0 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 EDGE_DEH.TYP uk.me.parabola.imgfmt.FileExistsException: File EDGE_DEH.TYP already exists Number of ExitExceptions: 0 Time finished: Sat Jul 15 13:01:44 CEST 2023 Total time taken: 739 ms //Felix On 15.07.23 08:46, Gerd Petermann wrote:
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:https://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=1443
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<gpetermann_muenchen@hotmail.com> 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<mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Herwegh<mlmmduk@herwegh.de> 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,
so I tried combining [opentopomap] Hungary and Slovenia but then I get again a small 2.5KB file Same here. My test were on simple maps without routing and DEM only; maybe its that. Sorry.
//Felix
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Try this: java -jar mkgmap.jar --gmapsupp otm-hungary.img otm-slovenia.img El 13/7/23 a las 16:35, Tamas Gal escribió:
Hi all,
maybe I got that wrong but I thought I can merge multiple IMG files into a single one with Mkgmap. My problem is that I need a bunch of maps and my Garmin 64s only shows 12 in the map selection. A simple solution to this limitation is merging maps ;)
Anyways, I gave Mkgmap a try but I get an error which I don't know how to interpret, since it's missing the input files but they are definitely in the folder. Do I maybe need the original OSM files as input files? In that case, the error message is probably wrong.
Here is an example where I try to merge the Hungarian and German map into a single IMG:
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:24 > ls -alh *.img -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany-contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary-contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img
░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 16:29:32 > java -jar mkgmap.jar --input-file otm-hungary.img --input-file otm-slovenia.img --gmapsupp Mkgmap version 4909 Time started: Thu Jul 13 16:29:45 CEST 2023 SEVERE (Main): : input file '' doesn't exist WARNING (global): Setting max-jobs to 1 SEVERE (Main): : input file '' doesn't exist Number of MapFailedExceptions: 0 WARNING (global): To reduce the run time, consider increasing the amnount of memory available for use by mkgmap by using the Java -Xmx flag to set the memory to more than 32800 MB, providing this is less than the amount of physical memory installed. SEVERE (global): Exiting - if you want to carry on regardless, use the --keep-going option Number of ExitExceptions: 1 Time finished: Thu Jul 13 16:29:45 CEST 2023 Total time taken: 182 ms
Any ideas?
Thanks in advance, Tom _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

java -jar mkgmap.jar --gmapsupp otm-hungary.img otm-slovenia.img
I tried that but the resulting file is only 2.5KB small: ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 17:35:23 > java -jar mkgmap.jar --gmapsupp otm-hungary.img otm-slovenia.img Mkgmap version 4909 Time started: Thu Jul 13 17:35:36 CEST 2023 Number of MapFailedExceptions: 0 Number of ExitExceptions: 0 Time finished: Thu Jul 13 17:35:36 CEST 2023 Total time taken: 267 ms ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 17:35:36 > ls -alh total 1563104 drwxrwxr-x@ 15 tamasgal staff 480B Jul 13 17:35 . drwxr-xr-x 9 tamasgal staff 288B Jul 13 16:17 .. -rw-rw-r--@ 1 tamasgal staff 18K Jun 5 10:29 LICENCE -rw-rw-r--@ 1 tamasgal staff 2.7K Jun 5 10:29 README drwxrwxr-x@ 10 tamasgal staff 320B Jun 5 10:31 doc drwxrwxr-x@ 10 tamasgal staff 320B Jun 5 10:29 examples -rw-r--r-- 1 tamasgal staff 2.5K Jul 13 17:35 gmapsupp.img drwxrwxr-x@ 5 tamasgal staff 160B Jun 5 10:29 lib -rw-rw-r--@ 1 tamasgal staff 2.3M Jun 5 10:29 mkgmap.jar -rw-r--r-- 1 tamasgal staff 5.0K Jul 13 17:35 osmmap.img -rw-r--r-- 1 tamasgal staff 155B Jul 13 17:35 osmmap.tdb -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany-contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary-contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img

From the names of the two input files I guess that you try to merge to files which are already in gmapsupp format. This can't be done with mkgmap.
Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Tamas Gal <tamas.gal@me.com> Gesendet: Donnerstag, 13. Juli 2023 17:36 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Trouble with merging IMG files (for Garmin)
java -jar mkgmap.jar --gmapsupp otm-hungary.img otm-slovenia.img
I tried that but the resulting file is only 2.5KB small: ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 17:35:23 > java -jar mkgmap.jar --gmapsupp otm-hungary.img otm-slovenia.img Mkgmap version 4909 Time started: Thu Jul 13 17:35:36 CEST 2023 Number of MapFailedExceptions: 0 Number of ExitExceptions: 0 Time finished: Thu Jul 13 17:35:36 CEST 2023 Total time taken: 267 ms ░ tamasgal@silentbox:~/opt/mkgmap-r4909 ░ 17:35:36 > ls -alh total 1563104 drwxrwxr-x@ 15 tamasgal staff 480B Jul 13 17:35 . drwxr-xr-x 9 tamasgal staff 288B Jul 13 16:17 .. -rw-rw-r--@ 1 tamasgal staff 18K Jun 5 10:29 LICENCE -rw-rw-r--@ 1 tamasgal staff 2.7K Jun 5 10:29 README drwxrwxr-x@ 10 tamasgal staff 320B Jun 5 10:31 doc drwxrwxr-x@ 10 tamasgal staff 320B Jun 5 10:29 examples -rw-r--r-- 1 tamasgal staff 2.5K Jul 13 17:35 gmapsupp.img drwxrwxr-x@ 5 tamasgal staff 160B Jun 5 10:29 lib -rw-rw-r--@ 1 tamasgal staff 2.3M Jun 5 10:29 mkgmap.jar -rw-r--r-- 1 tamasgal staff 5.0K Jul 13 17:35 osmmap.img -rw-r--r-- 1 tamasgal staff 155B Jul 13 17:35 osmmap.tdb -rw-r--r--@ 1 tamasgal staff 126M Jul 13 16:24 otm-germany-contours.img -rw-r--r--@ 1 tamasgal staff 43M Jul 13 16:28 otm-hungary-contours.img -rw-r--r--@ 1 tamasgal staff 346M Jul 13 16:28 otm-hungary.img -rw-r--r--@ 1 tamasgal staff 246M Jul 13 16:29 otm-slovenia.img _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (5)
-
Carlos Dávila
-
Felix Herwegh
-
Gerd Petermann
-
Tamas Gal
-
Ticker Berkin