logo separator

[mkgmap-dev] Translating route=bus relations

From Clinton Gladstone clinton.gladstone at googlemail.com on Fri Jan 1 23:26:14 GMT 2010

On Jan 1, 2010, at 22:34, Marko Mäkelä wrote:

> Could someone give me a hand with map layers (families in Garmin speak,
> if I understand correctly)?  Would I have to invoke mkgmap multiple times,
> once for each map layer (family) and finally to combine the families to
> a single gmapsupp.img?  Or can I ask mkgmap to generate multiple map
> families from the set of map tiles?  What would be the best way to package
> translation rules for bus routes?  If the route=bus layer is to be compiled
> separately from the "base" layer, then it would need a different style
> altogether, right?  And I guess it could be compiled with fewer and bigger
> map tiles as well?  Currently, my "base" layer of Finland is 3 tiles.
> I believe that one tile of bus routes would easily cover the entire country,
> at least until all bus routes have been mapped.

I created a public transit layer for Toronto, Canada. Most of your suppositions are correct, at least the way I did it:

- I had to invoke mkgmap once for each layer. Each layer had a different draw priority, TYP file, and mkgmap options (the public transit layer was transparent and not routable).

- I did not use mkgmap to create the final gmapsupp.img file though. Instead I used Garmin tools (Roadtrip, MapSource) for this. (Some of the more recent changes to mkgmap's gmapsupp code may better support this now.)

- I also created a completely new set of style files for the public transit layer. The style files were very basic, containing only items relevant to the public transit items (bus, tram, and subway stops, and the transit lines).

- Since the information in the transit layer was so sparse, I also did not need to split the map into sub-tiles (I generated the layer from an entire map of Ontario, which otherwise needs to be split for the normal layer.) This should also most likely be the case for Finland.

Does this help you?

Cheers.


More information about the mkgmap-dev mailing list