logo separator

[mkgmap-dev] creating a fool-proof mapsource installer across different versions

From Ævar Arnfjörð Bjarmason avarab at gmail.com on Fri Jun 19 23:41:18 BST 2009

On Thu, May 28, 2009 at 2:55 AM, maning
sambale<emmanuel.sambale at gmail.com> wrote:
> This solution work on MapSource ver 61.11 and 6.15.6
>
> mkgmap syntax:
>
> time java -Xmx512m -jar mkgmap.jar --code-page=1252 \
> --tdbfile --gmapsupp --latin1 --country-abbr=PHI
> --country-name=PHILIPPINES --road-name-pois --add-pois-to-areas \
> --no-poi-address --family-id=639 --family-name="OSM_PHIL"
> --overview-mapname=40000001 \
> --route --description="OSM_PHIL" /path/philippines.osm
>
>
> registry:
> REGEDIT4
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\MapSource\Families\OSM_PHIL]
> "ID"=hex:7f,02
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\MapSource\Families\OSM_PHIL\1]
> "LOC"="C:\\OSM\\"
> "BMAP"="C:\\OSM\\40000001.img"
> "TDB"="C:\\OSM\\40000001.tdb"

I got this working under MapSource 6.15.6 using this mkgmap command:

java -Xmx512M -jar ~/src/mkgmap/dist/mkgmap.jar --code-page=1252 \
    --tdbfile --latin1 --family-id=639 --series-name="OSM Iceland"
--family-name="OSM_ICE" \
    --overview-mapname=40000001 --mapname=40000002 \
    --route --description="OSM Iceland" ~/src/josm/Iceland.osm

And this regedit file:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\MapSource\Families\OSM_ICE]
"ID"=hex:7f,02

[HKEY_LOCAL_MACHINE\SOFTWARE\Garmin\MapSource\Families\OSM_ICE\1]
"LOC"="C:\\OSM\\"
"BMAP"="C:\\OSM\\40000001.img"
"TDB"="C:\\OSM\\40000001.tdb"

When debugging this I accidentally did:

--overview-mapname=40000001 --mapname=40000001

instead of:

--overview-mapname=40000001 --mapname=40000002

That resulted in mkgmap overwriting the mapname file with the
overview-mapname file, i.e. this:

108K    OSM/40000001.img
4.0K    OSM/40000001.tdb

instead of this:

108K    OSM/40000001.img
4.0K    OSM/40000001.tdb
2.4M    OSM/40000002.img

It would be helpful if mkgmap showed a warning or error on such
incompatible command-line options.



More information about the mkgmap-dev mailing list