logo separator

[mkgmap-dev] Combining several different maps into one gmapsupp

From Steve Ratcliffe steve at parabola.me.uk on Tue Oct 27 14:56:15 GMT 2009

Hi

I've improved the way that mkgmap combines maps into the gmapsupp.img.
It should now be possible to switch map families separately and
have different TYP files for each family.

If you want to try it out the code is on the mapset branch, or you can
download a ready compiled jar from the normal download page:

   http://www.mkgmap.org.uk/snapshots/

Choose the one like mkgmap-mapset-r*.jar

(You can get an up to date build of any other current branch there as
well.  They are usually no more than half an hour out of date.)

This is an example of two map families being combined into one
gmapsupp.img.  As the .img files do not contain the family-id's then
you have to specify them.

You can also now use a lowercase .typ extension.

### Start ###############
# This uses the complete set of options possible, you can omit many of
# them as they all have default values, but really the only critical
# thing is that the family-id and product-id match the ones given in
# the associated .TYP file.

gmapsupp

# First family 911
family-id=911
product-id=1
series-name=tst1 series
family-name=tst1 family
area-name=tst1 area
input-file:63240001.img
# .. all other files for this family
input-file:M000038d.TYP

# Second family 912
family-id=912
product-id=2
series-name=tst2 series
family-name=tst2 family
area-name=tst2 area
input-file:63240002.img
# .. all other files for this family
input-file:M0000390.TYP

area-name: An OSM area
mapset-name: OSM map set
### End #################

Note that .tdb files can only contain one family id and so any tdb file 
created at the same time as a multi-family gmapsupp should not be used.
The mdx file (part of the global index) can also contain multiple 
family/product ids but that has not been updated yet and I don't know 
how it would be useful yet either.

..Steve



More information about the mkgmap-dev mailing list