[Talk-de] Relationenn im Garmin visualisieren

Torsten Leistikow de_muur at gmx.de
Do Sep 3 16:10:40 UTC 2009


Moin,

Sven Geggus schrieb:
> Radrouten werden ja als Relation in OSM erfasst. Wenn man unterwegs
> ist (nicht auf mapping tour sondern ganz normal) möchte man diese
> natürlich gerne auch auf dem GPS sehen. Für Garmin Geräte bietet sich da
> ein overlay als GPX Track an, vielleicht oder sogar noch besser auch ein
> zuschaltbarer Kartenlayer.
> 
> Gibt es da schon was fertiges? Könnte man das vielleicht sogar direkt
> mit mkgmap machen?

Man kann sich mit mkgmap ein entsprechendes Layer bauen. Im mkgmap-style
habe ich mal versuchsweise folgende Zeilen in die relations-Datei gepackt:

type=route & route=hiking & network=iwn { apply { set
mkgmap_iwn_hiking_route=yes; set mkgmap_iwn_hiking_route_name='${name}';}}
type=route & route=hiking & network=nwn { apply { set
mkgmap_nwn_hiking_route=yes; set mkgmap_nwn_hiking_route_name='${name}';}}
type=route & route=hiking & network=rwn { apply { set
mkgmap_rwn_hiking_route=yes; set mkgmap_rwn_hiking_route_name='${name}';}}
type=route & route=hiking & network=lwn { apply { set
mkgmap_lwn_hiking_route=yes; set mkgmap_lwn_hiking_route_name='${name}';}}
type=route & route=hiking & network!=iwn & network!=nwn & network!=rwn &
network!=lwn { apply { set mkgmap_lwn_hiking_route=yes; set
mkgmap_lwn_hiking_route_name='${name}';}}
type=route & route=foot & network=iwn { apply { set
mkgmap_iwn_hiking_route=yes; set mkgmap_iwn_hiking_route_name='${name}';}}
type=route & route=foot & network=nwn { apply { set
mkgmap_nwn_hiking_route=yes; set mkgmap_nwn_hiking_route_name='${name}';}}
type=route & route=foot & network=rwn { apply { set
mkgmap_rwn_hiking_route=yes; set mkgmap_rwn_hiking_route_name='${name}';}}
type=route & route=foot & network=lwn { apply { set
mkgmap_lwn_hiking_route=yes; set mkgmap_lwn_hiking_route_name='${name}';}}
type=route & route=foot & network!=iwn & network!=nwn & network!=rwn &
network!=lwn { apply { set mkgmap_lwn_hiking_route=yes; set
mkgmap_lwn_hiking_route_name='${name}';}}
type=route & route=bicycle & network=iwn { apply { set
mkgmap_iwn_bicycle_route=yes; set mkgmap_iwn_bicycle_route_name='${name}';}}
type=route & route=bicycle & network=nwn { apply { set
mkgmap_nwn_bicycle_route=yes; set mkgmap_nwn_bicycle_route_name='${name}';}}
type=route & route=bicycle & network=rwn { apply { set
mkgmap_rwn_bicycle_route=yes; set mkgmap_rwn_bicycle_route_name='${name}';}}
type=route & route=bicycle & network=lwn { apply { set
mkgmap_lwn_bicycle_route=yes; set mkgmap_lwn_bicycle_route_name='${name}';}}
type=route & route=bicycle & network!=iwn & network!=nwn & network!=rwn
& network!=lwn { apply { set mkgmap_lwn_bicycle_route=yes; set
mkgmap_lwn_bicycle_route_name='${name}';}}


Und entsprechend dann in der lines-Datei die folgenden Umsetzungen:

highway=* & mkgmap_iwn_hiking_route=yes {name
'${mkgmap_iwn_hiking_route_name}'} [0x2d resolution 22]
highway=* & mkgmap_nwn_hiking_route=yes {name
'${mkgmap_nwn_hiking_route_name}'} [0x2d resolution 22]
highway=* & mkgmap_rwn_hiking_route=yes {name
'${mkgmap_rwn_hiking_route_name}'} [0x2e resolution 22]
highway=* & mkgmap_lwn_hiking_route=yes {name
'${mkgmap_lwn_hiking_route_name}'} [0x2e resolution 22]
highway=* & mkgmap_iwn_bicycle_route=yes {name
'${mkgmap_iwn_bicycle_route_name}'} [0x2f resolution 22]
highway=* & mkgmap_nwn_bicycle_route=yes {name
'${mkgmap_nwn_bicycle_route_name}'} [0x2f resolution 22]
highway=* & mkgmap_rwn_bicycle_route=yes {name
'${mkgmap_rwn_bicycle_route_name}'} [0x2f resolution 22]
highway=* & mkgmap_lwn_bicycle_route=yes {name
'${mkgmap_lwn_bicycle_route_name}'} [0x2f resolution 22]

Nun braucht man nur noch in der typ-Datei die entsprechenden Linien
0x2d, 0x2e und 0x2f definieren, und schon kann man sich mit mkgmap einen
einfachen Overlay-Layer fuer die Rad- und Wanderrouten bauen.

Gruss
Torsten




Mehr Informationen über die Mailingliste Talk-de