logo separator

[mkgmap-dev] naming map layers in a gmapsupp.img

From Steve Ratcliffe steve at parabola.me.uk on Mon Dec 21 00:18:59 GMT 2009

On 12/14/2009 04:35 PM, Torsten Leistikow wrote:
> Moin,
>
> I have multiple map layers in my gmapsupp.img file, but I can not set the name
> of the layers, so that they can be identified on my nuvi.
>
> The first layer is created by the following call:
>
> java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
> --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
> --transparent --product-id=7 --family-id=46 --country-name="Deutschland"
> --country-abbr="D" --family-name="OSM_M_OV" --tdbfile --draw-priority=18
> --max-jobs=3 ../../osm/Europa/66666???.osm.gz
>
> The second layer is created by the following call:
>
> java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
> --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
> --family-id=43 --country-name="Deutschland" --country-abbr="D"
> --family-name="OSM_BASE" --tdbfile --draw-priority=8 --max-jobs=3
> ../../osm/Europa/66663???.osm.gz
>
> And in a third step I combine both layers into the gmapsupp.img:
>
> java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
> --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
> img/03_topo_base/OSM_BASE.TYP

Sorry I'm a bit late on this thread...

Most of the parameters to do with family and product id's are not
stored in the .img file and so they need to be specified when creating
a tdb or gmapsupp file.  When a gmapsupp is created there is an extra
file added that contains family id, name etc information.  This MPS
file is within the gmapsupp, so you don't see it normally.

This file gained a lot of fixes recently and still might not be 100%
correct.

So you will need a command line something like this to create the
gmapsupp:

    java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
       --gmapsupp
	  --family-name=OSM_M_OV --family-id=46 img/06_restrictions_motorcar/*.img
	  --family-name=OSM_BASE --family-id=43 img/03_topo_base/*.img
       img/03_topo_base/OSM_BASE.TYP

..Steve



More information about the mkgmap-dev mailing list