Make route files for your Garmin: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
Line 16: Line 16:


In this case it's lines. Each line feature in the file represents one bike ride route.
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 ===
=== Shapefile to GPX file ===

Revision as of 05:58, 11 February 2009


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