
Hi! Thank you very much for providing mkgmap! Although I do not like (in general) Java software, mkgmap works and it is much better than being forced to use Windoze apps on Linux via Wine etc. I'd like to use QlandkarteGT which requires *.tdb file and I know how to create it when using *.osm files with the --tdbfile option. Now, I stumbled upon few sites which provide pre-made Garmin maps by using OSM data and provide maps either as combined/compressed gmapsupp.img file (which old version of Qlandmkarte would import) or as list of *.img map files (e.g. http://www.osm4you.com/ site) Now, my question is if it's possible to use mkgmap and create *.tdb file out of gmapsupp.img file and/or list of *.img file so that the above mentioned maps could be loaded into QlandkarteGT? Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------

Hi
Although I do not like (in general) Java software, mkgmap works and it
Hey, well welcome to the list...
Now, my question is if it's possible to use mkgmap and create *.tdb file out of gmapsupp.img file and/or list of *.img file so that the above
It will create a tdb file out of several .img files, in fact you can put any mixture of .osm or .img files on the one command line and it will first create the .img files from the .osm files and then create the .tdb file and then the gmapsupp.img file if you asked for it. It doesn't however split a gmapsupp.img into the individual files that created it. It would be possible to do that using the code in the imgfmt package quite easily. The gmapsupp is just like an archive that contains many files. Each file has a name that is 8 characters (usually digits) and a three letter extension. All you have to do is extract those sub-files, collect together files that share the same numeric base name and for each set of files write them to a new .img file. ..Steve

"Steve" == Steve Ratcliffe <steve@parabola.demon.co.uk> writes:
Steve> Hey, well welcome to the list... Thanks. Steve> It will create a tdb file out of several .img files, in fact you Steve> can put any mixture of .osm or .img files on the one command line Steve> and it will first create the .img files from the .osm files and Steve> then create the .tdb file and then the gmapsupp.img file if you Steve> asked for it. Cool. I supposed it can do it, but the problem was some bug in QlandkarteGT that it reported some error after loading and I couldn't see anything (it's supposedly fixed in trunk). Steve> It doesn't however split a gmapsupp.img into the individual files Steve> that created it. It would be possible to do that using the code Steve> in the imgfmt package quite easily. Well, it's not so important considering that one can usually get *.img files. Steve> The gmapsupp is just like an archive that contains many files. Steve> Each file has a name that is 8 characters (usually digits) and a Steve> three letter extension. All you have to do is extract those Steve> sub-files, collect together files that share the same numeric Steve> base name and for each set of files write them to a new .img Steve> file. If someone can write it, it can be nice add-on ;) Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D ----------------------------------------------------------------

Now, my question is if it's possible to use mkgmap and create *.tdb file out of gmapsupp.img file and/or list of *.img file so that the above
It will create a tdb file out of several .img files, in fact you can put any mixture of .osm or .img files on the one command line and it will first create the .img files from the .osm files and then create the .tdb file and then the gmapsupp.img file if you asked for it.
Starting with some .img files that weren't generated with mkgmap, the only thing I'm able to do (using version r713) is create the gmapsupp.img from one single .img file. If I specify multiple image files on the command line instead of just one, I get a java.lang.NumberFormatException. Same happens if I mix one .osm and that same .img file. In addition, I'm not able to generate a .tdb and overview .img file from an .img file not generated by mkgmap, I also get the same exception as above. When I specify "--tdbfile" with a .osm, I get the .tdb and the overview .img, in addition to the .img file, as expected. This also works if I generate a .img file with mkgmap and then re-run it with "--tdbfile". Just doesn't seem to work with .img files not generated by mkgmap. The .img files I'm using are one's from Garmin's worldwide basemap 4.01 (which can be downloaded directly from Garmin's web site) which I split up into it's three component .img files using GMapTool (obviously, not splitting the initial .img file doesn't work any better). On your mkgmap page, in the features section, you use the term "previously produced .img files" when referring to the ability to combine multiple .img files as well as generating .tdb and overview maps. So that implies that you only support .img files generated by mkgmap, but do you plan on supporting third party .img files (in particular Garmin's) in the future? Thanks for putting out such an excellent tool, it's really great to be able to use OSM data on Garmin devices. ..Yves
participants (3)
-
Gour
-
Steve Ratcliffe
-
Yves Perrenoud