0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby library for reading MapSource/BaseCamp-created GDB files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

Build Status

ruby-mapsource is a library that allows ruby programs to read files created by Garmin's MapSource and BaseCamp.

Usage

gdb = MapSource.read('/path/to/gdb_file.gdb')
# => #<MapSource::Reader:0x007fedfcb1b768>

# Read waypoints
gdb.waypoints.each { |wp|
  puts "#{wp.shortname} - (#{wp.latitude}, #{wp.longitude})"
}

# Read tracks
gdb.tracks.each do |track|
  puts "#{track.name} has #{track.size} points"

  track.waypoints.each { |wp|
     puts "\t#{wp.shortname} - (#{wp.latitude}, #{wp.longitude})"
  }
end

TODO

  • read routes
  • comprehensive testing of different versions

Thanks

GPSBabel - gdb.c was vital in understanding the format