logo separator

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

From Charlie Ferrero charlie at cferrero.net on Wed Dec 23 08:59:04 GMT 2009

Carlos Dávila wrote:
> Try again with the screeshots:
> Carlos Dávila escribió:
>> 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

Carlos,

The difference is that you are compiling the files from *.osm.  I 
already have the files compiled to *.img.  I don't want to have to start 
from *.osm because my contour layer never changes, so there's no point 
having to recompile it from scratch every time I update my OSM map data 
(i.e. weekly).

I've not got any further here, so I'm settling with my Option 2 listed a 
few emails upthread, as this gives me 95% of what I wanted.

Thanks all for your help,


--
Charlie



More information about the mkgmap-dev mailing list