logo separator

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

From Carlos Dávila cdavilam at jemila.jazztel.es on Tue Dec 22 17:06:57 GMT 2009

Charlie Ferrero escribió:
> Clinton Gladstone wrote:
>   
>> On Dec 22, 2009, at 12:41, Charlie Ferrero wrote:
>>
>>     
>>> So I've solved the problem of getting the familysets properly visible in 
>>> the secondary map menu, but now individual tiles all share the same 
>>> family name, no matter which family they were originally in.
>>>       
>> I'm pretty sure that to get correct names for the individual tiles, you have to provide names for each of them. You can do this by using the -c option and providing a .args file which lists the names of each tile. (Do this instead of using *.img on the command line.)
>>
>> I do pretty much the same thing as you do, except I use MapSource or the Map Install on the Mac to do the final combine and transfer. (Which is also needed if the --index option is used.)
>>
>> Cheers.
>>     
> Bear in mind that before this merge step, I've already built the various 
> tiles .img files and set the description, area-name, family-name 
> correctly (and verified this by making a gmapsupp.img for each layer 
> individually).  So it seems unnecessary to have to do it again at the 
> point of merging the layers into one final file.
>
> But anyhow, if I were to follow your suggestion I would need to supply 
> multiple .args files - one for each layer.  But if I try the following 
> it doesn't work (I end up with a single layer, the last one on the 
> command line):
>
> java -jar mkgmap.jar --gmapsupp
>   -c contours.args contours.TYP
>   -c base.args base.TYP
>   -c routing.args
>
> I need multiple .args files to control things like:
> draw-priority
> transparent
> family-name etc
>
> for each layer.
>   
AFAIK you can put all this settings in the same args, in the section of
each layer. This is what I have in an args file I'm testing:
latin1
code-page=1252
gmapsupp
remove-short-arcs
country-name=ESPAÑA
country-abbr=ESP

family-id=30
product-id=314
family-name=OSM España
series-name=OSM-Iberia-n
index
road-name-pois
ignore-maxspeeds
add-pois-to-areas
adjust-turn-headings
report-similar-arcs
link-pois-to-ways
location-autofill=1
drive-on-right
check-roundabouts
check-roundabout-flares
draw-priority=25
style=mio
route

mapname: 63240001
description: ES-Madrid
input-file: 63240001.osm.gz

mapname: 63240002
description: ES-Vigo
input-file: 63240002.osm.gz

mapname: 63240003
description: ES-Valladolid
input-file: 63240003.osm.gz

mapname: 63240004
description: ES-Valencia
input-file: 63240004.osm.gz

mapname: 63240005
description: ES-Barcelona
input-file: 63240005.osm.gz

family-id=31
product-id=320
family-name=OSM Costa Iberia
series-name=OSM-Iberia-costa
draw-priority=28
generate-sea
transparent
style=sea

mapname: 63240100
description: Costa Iberia
input-file: ../mapas/sea/costa_peninsula.osm

First layer is my regular routable map made from spain.osm.bz2
previously processed with splitter and second layer uses a sea-only map.
I have also uses a precompiled sea-only map as input for the second
layer. This way I've been able to compile a map of Spain with sea
avoiding the problems of geofabrik extracts. It works fine in MapSource
and Legend HCx, but in nuvi 300 some weird lines appear and some
elements of the map are "under the sea". See screenshots:
map in nuvi

Map in MapSource
> What am I missing?!
>
>
> --
> Charlie




More information about the mkgmap-dev mailing list