[mkgmap-dev] Routing - Documentation and Best Practice
From Minko ligfietser at online.nl on Wed Sep 14 18:09:12 BST 2011
Ralf, I don't think it will work in Mapsource/Basecamp with two different routing layers in one map. For instance you have a car based routing map in Layer 1: family-name=Layer1 input-file: 10000001.osm.gz input-file: 10000002.osm.gz And a bicycle/foot routing map in Layer 2: family-name=Layer2 input-file: 10000003.osm.gz input-file: 10000004.osm.gz And below those maps Layer 3 with all the topographic data. If you combine this in Mapsource (or better, Basecamp because here lies the problem): tdbfile=yes family-id=1234 family-name=AllLayers input-file: 10000001.img input-file: 10000002.img input-file: 10000003.img input-file: 10000004.img How can you tell Basecamp which layer to choose if the bicycle profile is chosen? Routing has to be on 10000001 and 10000002.img but BC don't know this. It only works if you see two maps, one bike map and one car map. ---------- Ralf wrote: On 08/28/2011 06:33 PM, Minko wrote: > Sounds interesting, but how will you do that? Can you give an example > which I can download? Sure. I first run mkgmap on the OSM files to generate the IMGs and the gmapsupp.img. The config file looks somewhat like this: gmapsupp [more options ...] family-id=1234 family-name=Layer1 input-file: 10000001.osm.gz input-file: 10000002.osm.gz family-id=5678 family-name=Layer2 input-file: 10000003.osm.gz input-file: 10000004.osm.gz [possibly more input files ...] This produces the IMG files and a gmapsupp.img for the GPS unit which contains 2 layers which can be switched on and off in the unit. If you use a custom typ file you'll need two, one for each layer. Mapsource can't do this, so I need a different setup: tdbfile=yes family-id=1234 family-name=AllLayers input-file: 10000001.img input-file: 10000002.img input-file: 10000003.img input-file: 10000004.img This will make a TDB file and an overview map for mapsource in which both layers show up. For mapsource you need a typ file with all types in it. An example of such a map is my topo map of Germany, which contains an OSM layer and three SRTM layers: http://www.kleineisel.de/blogs/index.php/osmmap/ _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Routing - Documentation and Best Practice
- Next message: [mkgmap-dev] Commit: r2013: Create and use "lies in" information in preprocessed bounds
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list