logo separator

[mkgmap-dev] Adding the gmapi format.

From Patrik Brunner patrik.brunner at gmx.net on Wed Dec 14 19:19:16 GMT 2016

I've tested the latest version from the gmapi branch and it runs fine in 
my opinion, I didn't find any obvious problem when using the created map 
inside MapSource.

But I have a question/request, even though I know that the phyton script 
was doing it exactly the same way.

Right now the gmap directory is called osmmap.gmap, some files inside 
are also based on the same name osmmap. Obviously enough the references 
in the Info.xml file are pointing to these files too.
Here the filestructure of a small map converted with mkgmap:

osmmap.gmap
osmmap.gmap/osmmap_mdr
osmmap.gmap/osmmap_mdr/00OSMMAP.MDR
osmmap.gmap/osmmap_mdr/00OSMMAP.SRT
osmmap.gmap/Info.xml
osmmap.gmap/osmmap.mdx
osmmap.gmap/Product1
osmmap.gmap/Product1/64420002
osmmap.gmap/Product1/64420002/64420002.LBL
osmmap.gmap/Product1/64420002/64420002.NET
osmmap.gmap/Product1/64420002/64420002.TRE
osmmap.gmap/Product1/64420002/64420002.NOD
osmmap.gmap/Product1/64420002/64420002.RGN
osmmap.gmap/Product1/64420001
osmmap.gmap/Product1/64420001/64420001.RGN
osmmap.gmap/Product1/64420001/64420001.NOD
osmmap.gmap/Product1/64420001/64420001.NET
osmmap.gmap/Product1/64420001/64420001.TRE
osmmap.gmap/Product1/64420001/64420001.LBL
osmmap.gmap/Product1/osmmap.tdb
osmmap.gmap/Product1/osmmap
osmmap.gmap/Product1/osmmap/64420000.TRE
osmmap.gmap/Product1/osmmap/64420000.RGN
osmmap.gmap/Product1/osmmap/64420000.LBL
osmmap.gmap/Product1/64420003
osmmap.gmap/Product1/64420003/64420003.TRE
osmmap.gmap/Product1/64420003/64420003.NOD
osmmap.gmap/Product1/64420003/64420003.NET
osmmap.gmap/Product1/64420003/64420003.LBL
osmmap.gmap/Product1/64420003/64420003.RGN
osmmap.gmap/6442.TYP

I would prefer having the top directory named differently/choosable.... 
why not using the basemap name ? or just a free choosable name ?
I would like to have it similar to below example.... btw: jmc_cli does 
it also the way shown below, it takes the name of the gmap folder from 
the original name of the basemap, I assume.

Freizeitkarte_LUX.gmap/
Freizeitkarte_LUX.gmap/Freizeitkarte_LUX_mdr
Freizeitkarte_LUX.gmap/Freizeitkarte_LUX_mdr/FREIZEIT.MDR
Freizeitkarte_LUX.gmap/Freizeitkarte_LUX_mdr/FREIZEIT.SRT
Freizeitkarte_LUX.gmap/Info.xml
Freizeitkarte_LUX.gmap/Freizeitkarte_LUX.mdx
Freizeitkarte_LUX.gmap/Product1
Freizeitkarte_LUX.gmap/Product1/64420002
Freizeitkarte_LUX.gmap/Product1/64420002/64420002.LBL
Freizeitkarte_LUX.gmap/Product1/64420002/64420002.NET
Freizeitkarte_LUX.gmap/Product1/64420002/64420002.TRE
Freizeitkarte_LUX.gmap/Product1/64420002/64420002.NOD
Freizeitkarte_LUX.gmap/Product1/64420002/64420002.RGN
Freizeitkarte_LUX.gmap/Product1/Freizeitkarte_LUX.tdb
Freizeitkarte_LUX.gmap/Product1/64420001
Freizeitkarte_LUX.gmap/Product1/64420001/64420001.RGN
Freizeitkarte_LUX.gmap/Product1/64420001/64420001.NOD
Freizeitkarte_LUX.gmap/Product1/64420001/64420001.NET
Freizeitkarte_LUX.gmap/Product1/64420001/64420001.TRE
Freizeitkarte_LUX.gmap/Product1/64420001/64420001.LBL
Freizeitkarte_LUX.gmap/Product1/Freizeitkarte_LUX
Freizeitkarte_LUX.gmap/Product1/Freizeitkarte_LUX/64420000.TRE
Freizeitkarte_LUX.gmap/Product1/Freizeitkarte_LUX/64420000.RGN
Freizeitkarte_LUX.gmap/Product1/Freizeitkarte_LUX/64420000.LBL
Freizeitkarte_LUX.gmap/Product1/64420003
Freizeitkarte_LUX.gmap/Product1/64420003/64420003.TRE
Freizeitkarte_LUX.gmap/Product1/64420003/64420003.NOD
Freizeitkarte_LUX.gmap/Product1/64420003/64420003.NET
Freizeitkarte_LUX.gmap/Product1/64420003/64420003.LBL
Freizeitkarte_LUX.gmap/Product1/64420003/64420003.RGN
Freizeitkarte_LUX.gmap/6442.TYP

I know that the conversion to gmapsupp format also uses the default name 
gmapsupp.img but I think that's less a problem as the result is only one 
file and not a structure with different files.... but to be honest: if 
you implement the choosable name here, then it would be an option, just 
for having it the same, to implement it for gmapsupp also... ;-)

Would that be a possibility ? I can rename the top level folder without 
problems and everything still runs, but that's not that nice.

And: to have another convincing reason: Official City Navigator Europe 
NTU 2016.30 is using the basename 'CNEuroNTU_2016_30' for the gmap 
folder and subcomponents.

Cheers
Patrik



More information about the mkgmap-dev mailing list