Setting up a test environment for mkgmap routing tests

Hi. Recently, I have bought a Garmin Oregon 300 and, of course, I soon tried to build routable maps from openstreetmap data using mkgmap. After creating maps, routing works sometimes and sometimes not on my device. For some destinations my Garmin device stops with the error "out of memory" or even stalls. In the latter case it has to be resetted by pushing the power button for a approx. 20 seconds or removing the batteries. As this is really annoying, I wanted to know if this is a device or a map problem. For this, I converted my .img map (created by mkgmap) so that it can be used in mapsource. ... and figured out that also mapsource can not find a route for some destinations and also stalls. I am using Linux (Ubuntu/Intrepid) and I thought it might be useful for others if I comment the steps (below) how I setup a test environment to [1] use mapsource with wine [2] convert an .img file so it can be used with mapsource under wine Please let me know, if there is a simpler way to perform .img to mapsource conversion! I know, mkgmap is under heavy development and I really like it. Thank you for your work! -- Thorsten [1] Using Mapsource with wine: - wine version >=1.1.19 is needed - download gdiplus, e.g. from http://www.dll-files.com/dllindex/dll-files.shtml?gdiplus - copy library: $ mv gdiplus.dll ~/.wine/drive_c/windows/system32/gdiplus.dll - get mapsource.exe, rename it to mapsource.zip, unpack, execute "MSMAIN.msi" from "wine explorer", execute "wine Setup.exe", install [2] Convert .img for mapsource - download gmt (Linux command line version) from http://www.anpo.republika.pl/download.html - create directory: $ mkdir /home/foo/.wine/drive_c/Garmin/<mappath> - split with an custom id, e.g. 19,05 $ gmt -S -v -f 19,05 -m EU -o /home/foo/.wine/drive_c/Garmin/<mappath> <mapname>.img - execute cgpsmapper (Linux command line) ~/.wine/drive_c/Garmin/EU$ cgpsmapper mapset00.img - update registry: gmt created a file "install bat" which should create registry entries. However, executing this .bat did not work with "wine explorer" so I created a file map.reg, and imported it with "wine regedit" ---- REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Families] [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Families\FAMILY_19] "ID"=hex:13,00 [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Families\FAMILY_19\5] "Bmap"="C:\\Garmin\\EU\\mapset00.img" "Loc"="C:\\Garmin\\EU" "Tdb"="C:\\Garmin\\EU\\mapset00.tdb" ---- After doing this, I can start mapsource. The mapname is not displayed on the left side. But if I increase the details and zoom into the map the map data is displayed..

<the.real.hik@gmx.net> wrote:
Please let me know, if there is a simpler way to perform .img to mapsource conversion!
Thorsten, you don't need to convert any output from mkgmap. You don't need cgpsmapper, and you don't need gmaptool. In addition to the *.img files, mkgmap can output the preview .img file and .tdb file for Mapsource. Just insert in your java command line --tdbfile and --overview-mapname= followed by 8 digits. Then create your registry keys. Best, Chris

leprof06@yahoo.de escribió:
<the.real.hik@gmx.net> wrote:
Please let me know, if there is a simpler way to perform .img to mapsource conversion!
Thorsten, you don't need to convert any output from mkgmap. You don't need cgpsmapper, and you don't need gmaptool. In addition to the *.img files, mkgmap can output the preview .img file and .tdb file for Mapsource. Just insert in your java command line --tdbfile and --overview-mapname= followed by 8 digits. Then create your registry keys. You can also use wine+MapSetToolKit to load maps into MapSource. It's quite easy. Cheers Carlos

leprof06@yahoo.de wrote:
<the.real.hik@gmx.net> wrote:
Please let me know, if there is a simpler way to perform .img to mapsource conversion!
Thorsten, you don't need to convert any output from mkgmap. You don't need cgpsmapper, and you don't need gmaptool. In addition to the *.img files, mkgmap can output the preview .img file and .tdb file for Mapsource. Just insert in your java command line --tdbfile and --overview-mapname= followed by 8 digits. Then create your registry keys.
Thx Chris. This method is more straightforward. However, I did not provide a family/product-id when converting .osm.gz to .img. Therefore, I tried to use mkgmap on the .img tiles to assign this IDs with $ mkgmap --tdbfile --overview-mapname="mapset00" --product-id=5 --family-id=20 <tiles*.img> Then, I modified the wine registry to use the ID (20=0x0014 => REG_BINARY 14 00) but I had no success (mapsource refuses to start). Then I started from the beginning and again converted from .osm.gz to .img with the family-id and product-id parameter - and still no success. Any hints? -- Thorsten

<the.real.hik@gmx.net> wrote:
$ mkgmap --tdbfile --overview-mapname="mapset00" --product-id=5 --family-id=20 <tiles*.img> (mapsource refuses to start).
You need to use 8 digits as overview-mapname, e.g.: --overview-mapname=12345678 Best, Chris

leprof06@yahoo.de wrote:
<the.real.hik@gmx.net> wrote:
$ mkgmap --tdbfile --overview-mapname="mapset00" --product-id=5 --family-id=20 <tiles*.img> (mapsource refuses to start).
You need to use 8 digits as overview-mapname, e.g.: --overview-mapname=12345678
Hi. I still have no success to install mkgmap generated maps to mapsource (SVN version) The call I used to generate the map was: mkgmap --style-file=~/navi/maps/mkgmap.style/ --no-sorted-roads --net --route --code-page=1252 --country-abbr="EU" --tdbfile --overview-mapname=20051979 --product-id=1 --family-id=20 ../*.osm.gz It seems that it has something to do with the .tdb file. If I change only the specific registry entry so that a tdb file of another (independent but working) map is used, then mapsource starts. Btw. Are you sure that overview-mapname has to be an 8 digit number? It seems that other maps also allow strings. Thorsten

did some experiments and found the overview map mast be an 8 digit number. this seems a limitation of mkgmap. this is not a mapsource requirement. mapsource is a bit strange. for me it never worked with -- product-id try just --family-name --family-id --series-name I don't use mapsource anymore since gmapi-builder supports the direct conversion to Roadtrip. And Roadtrip is way more stable :) On 28 Apr 2009, at 5:00 , Thorsten wrote:
leprof06@yahoo.de wrote:
<the.real.hik@gmx.net> wrote:
$ mkgmap --tdbfile --overview-mapname="mapset00" --product-id=5 -- family-id=20 <tiles*.img> (mapsource refuses to start). You need to use 8 digits as overview-mapname, e.g.: --overview- mapname=12345678
Hi. I still have no success to install mkgmap generated maps to mapsource (SVN version)
The call I used to generate the map was:
mkgmap --style-file=~/navi/maps/mkgmap.style/ --no-sorted-roads -- net --route --code-page=1252 --country-abbr="EU" --tdbfile -- overview-mapname=20051979 --product-id=1 --family-id=20 ../*.osm.gz
It seems that it has something to do with the .tdb file. If I change only the specific registry entry so that a tdb file of another (independent but working) map is used, then mapsource starts.
Btw. Are you sure that overview-mapname has to be an 8 digit number? It seems that other maps also allow strings.
Thorsten _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Apollinaris Schoell wrote:
did some experiments and found the overview map mast be an 8 digit number. this seems a limitation of mkgmap. this is not a mapsource requirement. mapsource is a bit strange. for me it never worked with --product-id try just --family-name --family-id --series-name
This helped. Thank you! By omitting "--product-id" and using "--family-name --family-id --series-name" I can use the map in mapsource.
participants (4)
-
Apollinaris Schoell
-
Carlos Dávila
-
leprof06@yahoo.de
-
Thorsten