OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2011-03-14 12:52:17

Mkgmap commands to compile one merged map after using the splitter

Hello everyone,

I tried to use splitter and mkgmap tools to have an OSM map, on my Garmin product (for car and sometimes for pedestrian and bike by using Openmtbmap).

It is the first time and i'm discovering each tool step by step and i'm reading on-line helps and tutorials but i still have somes problems.

At this moment, i'm using:
mkgmap-r1890
splitter-r170
QlandkarteGT v1.0.0

I downloaded severals maps files (France, Belgium, Luxembourg, Germany and others) from download.cloudmade.com. I splitted each map separately by using this command (in example for the Germany map):

java -Xmx2G -jar /media/share/Carte\ GPS/Tools/splitter-r170/splitter.jar germany.osm.bz2 &

Then, i ran mkgmap with this command line:

java -Xmx2G -jar /media/share/Carte\ GPS/Tools/mkgmap-r1890/mkgmap.jar --tdbfile --index --lower-case --keep-going --drive-on-right --style=default --generate-sea=multipolygon,extend-sea-sectors,close-gaps=6000 --series-name="OpenStreetMap_2011_03_12" --route --max-jobs=2 -c ../Afrique/template.args -c ../Belgique/template.args -c ../France/template.args -c ../Germany/template.args --product-id=5 ../Luxembourg/luxembourg.osm -c ../Suisse/template.args &

The problem is that the result under QlandkarteGT, i do not have a complete map as expected, in example the Africa map is missing and others tiles in Europe are disappeared. On each folder, i updated (and modified) the product-id number on the template.args file but the result is giving me the same problem again.

Could you please indicate me what i'm doing wrong? Hoping my description (and my english) stays readable.

Thank you in advance.

Last edited by Chebah (2011-03-14 12:54:51)

Offline

#2 2011-03-14 14:20:58

Re: Mkgmap commands to compile one merged map after using the splitter

you have to use lower max-nodes on the splitter (read splitter documentation):
Or here: http://openmtbmap.org/tutorials/render-maps-mkgmap/


OSM Maps for Mtbikers and Hikers, OSM Karten fuer Mtbiker und Wanderer --> http://openmtbmap.org
OSM Maps for racing and casual cycling - für Rennradfahrer und Freizeitradfahrer --> http://www.velomap.org

Offline

#3 2011-03-14 15:04:53

Re: Mkgmap commands to compile one merged map after using the splitter

Thanks for your note extremecarver. I will apply this change.

I have again one question, should i change my map id on each map with the specific command --mapid under splitter ?

I guess that mkgmap will overwrite the tile when a newest one is compiling with the same map id used previously.

On the splitter command line, shoud i indicate a different map id when i'm using separate maps (with several folders) ?

Offline

#4 2011-03-14 15:32:02

csdf
Senior Member
From: UK, living in Abu Dhabi
Registered: 2009-08-11
Posts: 314
Website

Re: Mkgmap commands to compile one merged map after using the splitter

You need to ensure that every map tile you create with mkgmap has a different mapname...if two tiles share the same mapname then they will not appear properly.

Offline

#5 2011-03-14 16:16:05

Re: Mkgmap commands to compile one merged map after using the splitter

Ok for mkgmap but what about the splitter? Should i enter a different map id on each folder where i'm using the splitter?

Template.arg files generated are using by mkgmap to build the final map.

Last edited by Chebah (2011-03-14 17:28:00)

Offline

#6 2011-03-14 20:11:05

csdf
Senior Member
From: UK, living in Abu Dhabi
Registered: 2009-08-11
Posts: 314
Website

Re: Mkgmap commands to compile one merged map after using the splitter

AFAIR, the --mapid command for splitter just controls the filename of the resulting tiles.  It is the --mapname parameter for mkgmap that is more important when it comes to what your GPS will or won't display.

Offline

#7 2011-03-15 11:56:05

Re: Mkgmap commands to compile one merged map after using the splitter

Ok thank you for your help csdf. It is working now!

Offline

Board footer

Powered by FluxBB
Hosting sponsored by Oxilion
Report abuse to osm at na1400 dot info