On 2012-07-12 13:52, Max Kellermann wrote:
At the XCSoar / SkyLines project, we're working on tools that do task
scoring of IGC files. All task types that are supported by XCSoar
will eventually be available in SkyLines. And that means there will
be a small command-line program that parses an IGC file, a task file,
and prints the results as JSON, which you can use in whatever
language.
So the way to go is: implement the task rules you need in XCSoar, and
then you get a command-line tool for the offline (non-interactive)
analysis.
http://www.xcsoar.org/
http://skylines.xcsoar.org/
Max
I know XCSoar but didn't that it can be used to score for a task. I
thought that's a flight computer. Is there a tutorial/wiki how to to the
score an IGC File?
I think it's not a big deal but just don't know how to do the
calculation with The 90 degrees angle. I need to calculat de distance
(red Line) which cuts the line between the two points A and B in the
angle of 90 degrees running throught point C. Each point is stored as a
longitude/latitude pair.
See this figure for better understanding:
http://dl.dropbox.com/u/15535011/PGC/Schnittpunkt.png
If some knows how to calculate this or has som hints, please let me know.
For all other calculations I would use the library from
http://www.jstott.me.uk/phpcoord to process each line from the IGC file.
thanks,
MAx