TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'gpsbabel'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gpsbabel
Convert gdb
file into a gpx
file.
GPSBabel.convert({
input: {
format: 'gdb',
file: '/home/user/gps_data/tracks.gdb'
}
})
This example will create a gpx
file at /home/user/gps_data/tracks.gpx
.
GPSBabel.convert({
input: {
format: 'gdb',
file: '/home/user/gps_data/tracks.gdb'
},
output: {
format: 'gpx',
file: '/home/user/gps_data/converted_tracks.gpx'
}
})
Only extract specific GPS data from converted file using options
. Defaults waypoints
, routes
, and tracks
to true
.
GPSBabel.convert({
input: {
format: 'gdb',
file: '/home/user/gps_data/tracks.gdb'
},
output: {
format: 'gpx',
file: '/home/user/gps_data/converted_tracks.gpx'
},
options: {
waypoints: false,
routes: false,
tracks: true
}
})
Specify which gpx
version to convert to. Default: 1.1
GPSBabel.convert({
input: {
format: 'gdb',
file: '/home/user/gps_data/tracks.gdb'
},
output: {
format: 'gpx',
gpxver: '1.0'
file: '/home/user/gps_data/converted_tracks.gpx'
},
options: {
waypoints: false,
routes: false,
tracks: true
}
})
- Fork it ( https://github.com/[my-github-username]/gpsbabel/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request