[mkgmap-dev] Trouble with merging IMG files (for Garmin)
From Tamas Gal tamas.gal at me.com on Thu Jul 13 20:20:36 BST 2023
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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.mkgmap.org.uk <mailto:mkgmap-dev at lists.mkgmap.org.uk> >>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >> _______________________________________________ >> mkgmap-dev mailing list >> mkgmap-dev at lists.mkgmap.org.uk <mailto:mkgmap-dev at lists.mkgmap.org.uk> >> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20230713/63f5345e/attachment.html>
- Previous message: [mkgmap-dev] Trouble with merging IMG files (for Garmin)
- Next message: [mkgmap-dev] Trouble with merging IMG files (for Garmin)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list