Problem with multiple TYP files

Hi All, I'm a in the process of creating my first map with mkgmap (r3310) and have successfully managed to produce two gmapsupp.img files each with its own family id and TYP file. The next step is to combine these two IMG files into a single file for copying onto the GPS, however when I issue the following command: mkgmap --gmapsupp map1.img map2.img the resulting gmapsupp.img file only contains the TYP file from the last input file. Is this a bug in mkgmap or have I missed something? -- Regards, Andy Street

Hi
I'm a in the process of creating my first map with mkgmap (r3310) and
Welcome!
IMG files into a single file for copying onto the GPS, however when I issue the following command:
mkgmap --gmapsupp map1.img map2.img
the resulting gmapsupp.img file only contains the TYP file from the last input file. Is this a bug in mkgmap or have I missed something?
Combining two gmapsupp files ought to work, although this is something that is rarely done so is less well tested. Do you know that the gmapsupp.img file only contains one TYP file by direct examination of the file, or because only the second TYP file appears to affect the display? I tried to reproduce this and I found a couple of problems. 1. If the two input files contain a TYP file with the same name, then there does appear to be only one in the final gmapsupp. If that is what is happening for you, then a workaround is to make sure that they have different names, as that works for me in my test anyway. 2. If the input gmapsupp.img files were built with --index, then the operation fails, leaving an almost empty gmapsupp.img, without any error or message. I don't think this is what you are seeing but it needs fixing anyway. If neither of those seem to be relevant the I will need some more details. Best wishes Steve

On Sat, 28 Jun 2014 23:10:29 +0100 Steve Ratcliffe <steve@parabola.me.uk> wrote:
Combining two gmapsupp files ought to work, although this is something that is rarely done so is less well tested.
My initial approach was to build the "gmapsupp.img" file in one go rather than combining them but after running into the TYP problem I added more steps to try and narrow down where it was failing.
I tried to reproduce this and I found a couple of problems.
1. If the two input files contain a TYP file with the same name, then there does appear to be only one in the final gmapsupp. If that is what is happening for you, then a workaround is to make sure that they have different names, as that works for me in my test anyway.
There's my stupid rookie mistake! :) After creating two styles with an identical directory structure I thought nothing of adding a "typ.txt" file to each style. I've now renamed the TYP files using the family id for uniqueness and it is working perfectly. Many thanks for your help Steve. -- Regards, Andy Street
participants (2)
-
Andy Street
-
Steve Ratcliffe