logo separator

[mkgmap-dev] Merging layers in a map (was is_in filter)

From Carlos Dávila cdavilam at orangecorreo.es on Tue Feb 7 22:18:01 GMT 2017

El 07/02/17 a las 22:06, nwillink escribió:
> For years now I have been keeping all buildings as a separate transparent
> gmapsup /img  giving it a higher priority/draworder then my normal maps - It
> has speeded up my daily runs without loss of detail - same could be done for
> rivers/streams etc.
> As a bonus I can ,if I wanted to, switch off/on buildings on my device, bit
> like contours.
> I update my buildings.img when necessary.
> This is not an answer to the initial problem but it works
> r
> Nick
Thanks Nick for the hint.
I had already tried this approach to separate my topo map into three 
layers: base map, topo specific elements and contour lines but I get 
very different behavior on different Garmin models. Up to now I have 
done only a simple test with the commands and results shown below:
#Base map:
java -Xmx600m -ea -jar mkgmap.jar --bounds=bounds.zip --route --latin1 
--code-page=1252 --country-name=ESPAÑA --country-abbr=ESP 
--family-name="OpenStreetMap Extremadura" --family-id=113 --product-id=1 
--series-name="OSM-Extremadura"  --area-name=España 
--overview-mapname=ESP-113 --mapname=55113001 --index 
--process-destination --process-exits --housenumbers --add-pois-to-areas 
--adjust-turn-headings --report-similar-arcs --link-pois-to-ways 
--location-autofill=is_in --drive-on=right 
--style-file=../resources/styles --style=base typ/ESP-113.TYP 

#Topo layer
java -Xmx600m -ea -jar mkgmap.jar --family-id=513 --product-id=1 
--family-name="Topo Extremadura" --series-name="Topo-Extremadura" 
--area-name=España --overview-mapname=ESP-513 
--overview-mapnumber=55513000 --transparent --draw-priority=26 --latin1 
--code-page=1252 --style-file=../resources/styles --style=topo 

#Merge all layers (contours are prebuilt transparent 60213*.img files 
with draw-priority=28)
java  -ea -jar mkgmap.jar --latin1 --code-page=1252 
--description="OSM+Topo-Extremadura" --country-name=ESPAÑA 
--country-abbr=ESP --family-name="OSM+Topo Extremadura" --family-id=313 
--product-id=1 --series-name="OSM+Topo Extremadura" --area-name="España" 
--overview-mapname=ESP-313 --overview-mapnumber=65313000 --index 
--show-profiles=1 ../mapas/extremadura/55113*.img 
../mapas/extremadura/6324*.img ../mapas/extremadura/60213*.img 

Legend HCx: each single tile must be enabled/disabled separately. Tiles 
of each layer are identified as OpenStreetMap-Extremadura (base map), 
OpenStreetMap (topo) and Curvas de nivel (contour lines).
etrex 20x: only two maps are shown in map info: OpenStreetMap (base map) 
and OSM+Topo Extremadura (all layers). If only base map is enabled, 
background is black.
Edge 800: map info shows three maps, but they all have the same name and 
properties and it's necessary to enable/disable them by turns to know 
which is which.
As I've said, it was only one test and I probably have to play with 
description parameters to get a more homogeneous behavior, so any hint 
would be much appreciated.

More information about the mkgmap-dev mailing list