Make route files for your Garmin

From Wildsong
Jump to navigationJump to search


The project

I have obtained a shapefile from bikemap site.

I want to convert it into a format suitable for use in a Garmin GPS receiver.

What is a route?

Conversion process

Obtain suitable data

Shapefile containing points or lines

In this case it's lines. Each line feature in the file represents one bike ride route.

Coordinate system

The file is in a projected coordinate system and I need it in latlon WGS84 format.

ogr2ogr -overwrite -t_srs wgs84 -f "ESRI Shapefile" BikeMap.shp SelectRoutes.shp

ogr2ogr is from the gdal-bin package.

Shapefile to GPX file

This command converts the shapefile into a GPX file. GPX is an interchange format commonly used by free and open source GPS programs.

gpsbabel -i shape -f SelectRoutes.shp -ogpx -F BikeMap.gpx

Transfer GPX file to Garmin

Three Linux programs that can be installed from the Ubuntu package archives are Viking, josm, and merkaator.

Windows -- In the past I have used a Windows program called EasyGPS which I believe supports GPX files.

Conclusions