blankblank blank




Converting OpenStreetMap Data Into GPX Or Garmin .img Format



The OpenStreetMap project is “a free editable map of the whole world”, created by users with GPS data or by tracing over Yahoo Maps images (allowed by Yahoo) or public domain Landsat data. Data is viewable by anyone; registration assigns you a username and password that lets you contribute your own data to the project, using a multi-platform map editor like JOSM or Meerkartor. JOSM also lets you save downloaded data from OpenStreetMap, and this data can be converted to the .img format used by Garmin mapping GPS units, or converted to a GPX file for general import into GPS units.

The current OSM data in Garmin .img format is available for the UK, South Africa, and Africa at the Mkgmap wiki site, and for Germany/Netherlands and the entire world at this site. But if you want the most recent data, data subsets for different areas, or don’t want the entire dataset for the world, you can download data for a specific area from OpenStreetMap and convert it yourself to a Garmin .img file. Data coverage is still spotty, so you should check the OpenStreetMap site to see whether the area you’re interested in has data. If yes:

1. Click the “Download some data from the OSM server” link in JOSM, and specify the latitude/longitude bounds of the area you’re interested in (no more than 0.25 degrees square) (note: you’ll need to have entered your OSM username and password in the preferences section).

2. Save the downloaded data as an *.osm file if you want to convert it to Garmin format, else save it as a GPX file.

3. Use the command line Java program Mkgmap to convert the *.osm file to a Garmin img map file (always the same output filename, “63240001.img”, but you can rename it to a different 8-digit number after creation) . If your osm file is called test.osm and is in the same directory as mkgmap.jar, the command syntax is “java -jar mkgmap.jar test.osm”. Enter the appropriate data path if it’s located in a different directory, but the 63240001.img file will always be created in the directory where mkgmap.jar is located. If you’d prefer a GUI, I’ve created a simple one for Windows that you can download here; unzip it to the same directory as mkgmap.jar and run it. The *.osm file will have to be in the same directory as mkgmap.jar for this GUI to work; sorry about that.

4. Upload the .img file to your Garmin GPS using a program like sendMap, or MapUpload if you have a compatible Garmin unit. For GPX files, use the upload program of your choice (e.g. GPS TrackMaker or EasyGPS).

Thanks to David from the UK for the tip.

sf Actual screenshot
See Real USGS Topo Maps, Aerial Photos And Scanned Maps On Your Garmin GPS With

Moagu:
The Mother Of All GPS Utilities


"... Moagu rocks! This really is revolutionary!"
The GPS Tracklog Blog

Click here for more info

sf Actual screenshot

Other posts in the Garmin GPS series

  1. Garmin microSD Card Tricks
  2. Exporting Data From Garmin’s MapSource Program To Google Earth
  3. Free Garmin GPS Unit Auto-Routing With MetroGuide Maps + Free European Basemap
  4. Cheap Worldwide Road And Contour Maps For Garmin GPS Units
  5. Converting A Garmin USB GPS Connection To Multiple Serial NMEA Connections
  6. Converting OpenStreetMap Data Into GPX Or Garmin .img Format
  7. Adding Garmin .img Map Files To MapSource
  8. Sources For Free Garmin .img GPS Map Files
  9. Beta Version Of DNRGarmin
  10. Google Maps Search Interface For Garmin .img Maps
  11. High-Res Garmin Topo Maps For CO, WY, and UT (also Argentina, Uruguay and Chile)
  12. Creating Custom Waypoint Icons For Garmin GPS Units I
  13. Creating Custom Waypoint Icons For Garmin GPS Units II
  14. Creating Custom Waypoint Icons For Garmin GPS Units III - Custom Waypoint Icons In MapSource
  15. Garmin Handheld GPS Units That Support Custom Waypoints
  16. Garmin MapSource For Free
  17. Garmin GPS Unit Waypoint Icons Table
  18. A Look At OpenStreetMap’s TIGER Data Exported To A Garmin GPS
  19. Beating The Garmin 2025-Map Limit With US Topo Maps
  20. High-Res Garmin Topo Maps Now Out For Utah
  21. Introduction To Garmin GPS Custom POI (Points Of Interest) Data
  22. Garmin Topo Maps For Montana And California
  23. Creating A Garmin Custom POI Datafile
  24. Managing Custom POI Data On A Garmin Handheld GPS
  25. Creating Custom Icons For Garmin Points Of Interest (POI)
  26. Creating A Garmin GPS Points Of Interest (POI) File From A Point Shapefile
  27. Entering Multiple Datasets For A Single Set Of Garmin Custom POIs
  28. AZ Garmin Topo Maps And More From The GPS File Depot
  29. Updates For Two Garmin-Related Programs
  30. Put USGS Topographic Maps, Aerial Imagery, And Other Raster Imagery On Your Garmin Handheld GPS
  31. New Garmin Map Links At The GPS File Depot
  32. Sets Of Custom Garmin Waypoint Icons
  33. Converting Raster Maps To Garmin Vector Format With BMap2MP
  34. Updates At The GPS File Depot
  35. Uploading .img Map Files To A Garmin GPS Unit With MapUpload
  36. Make Your Own Topo Maps For A Garmin GPS Unit
  37. Garmin Map Roundup
  38. Uploading .img Map Files to A Garmin GPS Unit With IMG2GPS
  39. Updates On The Garmin 1:24K US Topographic Map Front


Subscribe to this blog's RSS feed

7 Responses to “Converting OpenStreetMap Data Into GPX Or Garmin .img Format”


  1. 1 Alex

    Hi, and thanks for all the great tools and info !

    I was wondering if there was a way to get OSM data and convert it to shapefiles. My idea is to use OSM data on a Mapguide OS server.

    Any help appreciated.

    Cheers

    Alex

  2. 2 Leszek Pawlowicz

    Check the OSM Wiki for instructions on how to convert an OSM file to GML format, which MapGuide can use. If you want to go a step further, the wiki also gives an example of how to convert a GML file to a shapefile using ogr2ogr.

  3. 3 Michael Morris Franks

    reCAPTCHA

    I am cycling the Coast to Coast Ride frrom Wokington to Tynemouth at the July of July. I have down loaded osm map data and converted them into Garmin Img maps for importing into Mapscource and down loading into a GPS set hopefully the Garmin Edge 705 which I m about to buy. I have downloaded five seperate maps one for each day of the ride each less ha 0.25 square degrees
    I have two questions
    1) is it possible to join the five maps together to form one continous map?
    2) The roads and other features of the map are broken and fragmentry near the edges. Is there any way of avoiding this or fixing it ?

  4. 4 Michael Morris Franks

    I solved the problem of obtaining a map showing the whole C2C route. I went to Planet.osm I used WinWget to down load an entire map from http://www.informationfreeway.org. The boundary box I used was -3.5,51.5,-1.0,53.5 which gave me the whole are.
    When I first converted the map into Garmin img format the main road such as the A69 were shown twice once on their true course and a second time in a series of straight lines resembling a staircase. However I downloaded the latest version of cgpsmapper and that fixed the problem.

  5. 5 Thomas

    Leszek your GUI tool works great!

    Very nice work as always!

    /Thomas

  1. 1 Adding Garmin .img Map Files To MapSource - Free Geography Tools
  2. 2 More Garmin GPS | Kieren’s Website

Leave a Reply


Be sure to enter the "reCAPTCHA" below before submitting your comment.