[OSM-dev] OSM Map On Garmin

Andreas Brauchli linux at elementarea.net
Wed Oct 18 14:58:34 BST 2006


hey there,

some might've seen it on the wiki, but now i feel comfortable posting it
here to the dev list:

i did a (PHP5) remake of Mikel Maron's perl script which takes an
OSM-xml as input and outputs a .mp-file which can be compiled with
cgpsmapper.
It offers some major feature enhencements like way-support (along with
name and road-classification) and POI's; the downside is the time it
takes to run (at least on my machine, might be differrent on an amd64)
which is largely consumed on the xpath queries

the code can be found at:
http://wiki.openstreetmap.org/index.php/Talk:OSM_Map_On_Garmin#PHP_Version_.28feedback_appreciated.29
(Total Physical Source Lines of Code = 296, counted with sloccount)

it'd be nice if you could try it out if you've got a garmin unit (you
can also try without and watch the result in an .img-editor)

one of the next bigger steps will be to write an abstraction algorithm
for the map to be CPU-(and therefore battery-)friendly displayed at less
high zoom levels (currently it only displays at <300m on my GPSMap60CSx)

andreas

(hope i didn't submit it twice, i've had some trouble with the list
lately)





More information about the dev mailing list