logo separator

[mkgmap-dev] Overview map in gmapsupp.img?

From Ralf Kleineisel ralf at kleineisel.de on Fri Feb 20 16:11:14 GMT 2015

Hi,

is there a way to include the overview map in the gmapsupp.img without
having to run mkgmap another time?

If I have, say, three map tiles and the corresponding ovm files:

-rw-r--r-- 1 ralf users 13522944 Feb 17 22:55 10000001.img
-rw-r--r-- 1 ralf users 16841216 Feb 17 22:55 10000002.img
-rw-r--r-- 1 ralf users 19913728 Feb 17 22:55 10000003.img
-rw-r--r-- 1 ralf users   768512 Feb 17 22:55 ovm_10000001.img
-rw-r--r-- 1 ralf users  1009152 Feb 17 22:55 ovm_10000002.img
-rw-r--r-- 1 ralf users  1336320 Feb 17 22:55 ovm_10000003.img

and I combine all these into a gmapsupp.img, then the overview map is
created as a seperate file but not included in the gmapsupp.img:

$ mkgmap --gmapsupp --overview-mapname=OV --overview-mapnumber=99999999
1*img ovm*img

produces:

-rw-r--r-- 1 ralf users 50177024 Feb 20 17:04 gmapsupp.img
-rw-r--r-- 1 ralf users    24064 Feb 20 17:04 OV.img
-rw-r--r-- 1 ralf users     1132 Feb 20 17:04 OV.tdb

The overview map is not in the gmapsupp.img:

$ gmt -i gmapsupp.img
gmt v0.8.186.801b  CC BY-SA (C) 2011-2014 AP www.gmaptool.eu

File:           gmapsupp.img, length 50177024
Header:         20.02.2015 17:04:44, DSKIMG, XOR 00, V 0.00, Ms 0
Mapset:         OSM street map

Map              length s-f  CP    prio  PID   FID  name
 MAKEGMAP MPS       206  1
 10000001 MPC  13462832  5  1252   25      1  6324  Description
 10000002 MPC  16766155  5  1252   25      1  6324  Description
 10000003 MPC  19826659  5  1252   25      1  6324  Description
 00006324 SRT       932  1

Data MPS
 F: PID 1, FID 6324, family name
 V: OSM map set (0)

Only after running mkgmap one more time it is included:

$ mkgmap --gmapsupp --overview-mapname=OV --overview-mapnumber=99999999
1*img ovm*img OV.img

$ gmt -i gmapsupp.img
gmt v0.8.186.801b  CC BY-SA (C) 2011-2014 AP www.gmaptool.eu

File:           gmapsupp.img, length 50199552
Header:         20.02.2015 17:06:25, DSKIMG, XOR 00, V 0.00, Ms 0
Mapset:         OSM street map

Map              length s-f  CP    prio  PID   FID  name
 MAKEGMAP MPS       258  1
 10000001 MPC  13462832  5  1252   25      1  6324  Description
 10000002 MPC  16766155  5  1252   25      1  6324  Description
 10000003 MPC  19826659  5  1252   25      1  6324  Description
 99999999 MPC     20371  3  1252   25      1  6324  Overview Map
 00006324 SRT       932  1

Data MPS
 F: PID 1, FID 6324, family name
 V: OSM map set (0)

It would be very handy to have the overview map in the gmapsupp.img
after the first run. Is this possible?


More information about the mkgmap-dev mailing list