[OSM-talk] osm2garmin - utility for transferring live OSM data to Garmin GPS
Nick Whitelegg
nick at hogweed.org
Sun Dec 17 15:27:24 GMT 2006
As an extension to the osmgarminmap utility announced last week, I have
started a utility called "osm2garmin" which transfers live OSM data to your
Garmin GPS in one step. It makes use of the XSLT transformations within
osmgarminmap, then calls cgpsmapper and sendmap in sequence.
If you want to transfer a large area to your GPS, it can fetch OSM data in
tiles (default size 0.1 x 0.1 degrees). This will generate one .img file for
each tile. sendmap is *supposed* to be able to send multiple .img files -
however, for some reason, the one on my system doesn't send anything (not
even one file) if multiple .img files are specified.
Code is written in c++ and relies on libxml2, libxslt and libcurl (none of
which have involve any dependency hell -- the only dependency being libxslt
on libxml2). The intention later will be to develop this into a GUI
application where users can edit the stylesheets through a GUI interface.
Let me know if you have any comments. Would also be interested to hear of any
success with sending multiple .img files to the device.
Summary of usage:
Usage: osm2garmin [--nosend] [--tiled] [--tilesize tilesize] [--serialport
serialport] w s e n OSMusername OSMpassword
--nosend: generate .img files but do not send to GPS. Useful if you want to
download a large area in tiles and leave it going as a background job.
--tiled: tiled retrieval if the area requested exceeds tilesize.
BTW this is why I was interested in utilities to remove duplicate
nodes/segments/ways (could occur at tile boundaries)
Nick
More information about the talk
mailing list