igc2kmz is a tool to convert IGC (flight recorder) to KMZ/KML (Google Earth).
It's aTypescript port of Tom Payne's python tool igc2kmz
The resulting tool is available online here : → igc2kmz.html ← (it can also be used in command line, see below)
For the web : See igc2kmz.html or example.html ('hello world' code), Single Page Application available here (right click and save it to computer/phone)
Command line : build first then on a prompt :
node dist\igc2kmz.cmd.js examples\flight.igc
Upload to Google Earth, voilà!
ℹ️ Note : animations doesn't seem to work on web version of earth, but are ok on desktop version...
computed by igc-xc-score
XC Track file format (.xctsk)
Get sources from the repository and install npm dependencies
git clone https://github.com/spasutto/igc2kmz.git
cd igc2kmz
npm install
then
npm run build # for command line usage
# or
npm run minify # for web
npm run buildweb # for web (development)
# or
npm run buildnode # for use as library
build web/minify version first, then see examples/example.html
build node version first, copy dist/igc2kmz.js
then in a new javascript file :
var igc2kmz = require('igc2kmz');
const fs = require('fs');
var igccontent = fs.readFileSync('examples/flight.igc', { encoding: 'utf8', flag: 'r' });
var outfilename = "output.kmz";
igc2kmz.igc2kmz(igccontent).catch(err => console.log(err)).then(kmz => {
if (kmz) {
fs.writeFileSync(outfilename, Buffer.from(kmz), 'binary');
console.log("output to " + outfilename);
}
});
- tests
- versioning
- worker for web version
- others tasks formats
- warnings on fonts via pureimage
- warning on Buffer() (outdated pngjs of pureimage)
- get real altitude and correct IGC or convert from QFE