watermint.org

Takayuki Okazaki's blog

Garmin Training Center - Koyodai
Garmin Training CenterではForerunner 305から取り出したデータをTCXという形式でエクスポートできます。Garmin Training Centerで表示できる簡易の地図ではなく、Google Mapsなどのような詳細な地図でレコードを確認したいと思うのが当然の成り行きです。最初、Garmin Training CenterのTCX形式(中身はXML)をGoogle Earth/Maps用のKMLに変換するスタイルシートでも書くかちょっと考えましたが、その前にもっと簡単なやり方がないか探してみることにしました。
R0027947
Garmin Training Centerのリリースノートを見てわかったんですが、Garmin Training CenterはGPX形式でのエクスポートができるのだそうです。
Training Center For Mac software version 2.1.5 より。

Changes made from version 2.0.3 to 2.1.2:

  • Added support for Edge 605/705
  • Added capability to change activity type for history
  • Added capability to add notes to any item in the application
  • Added update reminders for map products
  • Added a menu item that allows users to unlock maps online
  • Added crash reporting
  • Added GPX exporting. To produce GPX data, add .gpx extension when exporting
  • Viewing parameters are preserved across map products of the same region
  • Fixed an issue that caused the Traditional Chinese version to crash on startup
  • Fixed a data transfer issue that caused the application to crash
  • Fixed an issue that caused a crash if the unlock codes were entered in lower case
  • Fixed an issue that prevented converted maps from being detected
  • Fixed an issue that caused the application to crash when displaying newer map products on PPC.

なんと、エクスポート時のファイル名の拡張子として、gpxをつければGPX形式として出力されるとのことです。気づかんって!そんなの・・・。試しにエクスポートしてみたところ、無事GPX形式のファイルが得られました。GPX形式になればもうこっちのものです。あとはGPSBabel+を使ってKML(Google Earth/Maps用形式)に変換すればいいだけのはず。

$ gpsbabel -i gpx -f エクスポートしたファイル名.gpx -o kml -F 出力ファイル名.kml

という感じでコマンドをたたきます。さて、早速Google Mapで表示・・とおもいきや、出力されたファイルの中身をみても全然GPSのデータが載っていません・・・。おかしいなあ。