Go library for processing and manipulating IGC files.
Forked from original project by Ricardo Rocha https://github.com/ezgliding/goigc
v0.1.0
Note: the library status is alpha. The API is subject to change. No backwards compatibility should be assumed. Use at your own risk.
First stable release will be v1.0.0.
package main
import (
"fmt"
"github.com/marni/goigc"
)
func main() {
s := "http://skypolaris.org/wp-content/uploads/IGS%20Files/Madrid%20to%20Jerez.igc"
track, err := igc.ParseLocation(s)
if err != nil {
fmt.Errorf("Problem reading the track", err)
}
fmt.Printf("Pilot: %s, gliderType: %s, date: %s",
track.Pilot, track.GliderType, track.Date.String())
}
Tests rely on the golden files. To update the golden files, run the tests with the -update
flag:
go test -update .
$ godoc github.com/marni/goigc
- Latest IGC technical spec. The IGC file specification is provided by FAI and IGC standarization committes and should be used as a reference. See section A9 for the example of IGC file.
- An example IGC files can be downloaded from XContest.org, eg. a short flight
- IGC Waypoint format (useful for fields specs)