Log2itn

From OpenTom

Jump to: navigation, search
log2itn
This application processes NMEA GPS messages (.log files) and can generate .gpx and .itn files.
Properties
Developer: Markus Hoffmann
Version: 1.14  (04.01.2010)
Architecture: arm-linux, intel-linux, WINDOWS
Language: C
Comment: arm-linux version is contained in TTTracklog package.
Dependencies
Requires: {{{requires}}}
See also: Software
Image:log2itn.png

Image:Flag-en.gif log2itn is a converter (filter) for NMEA log files. It converts them into .gpx and/or .itn files according to divers parameters. It also shows the summaries about your saved tracks.

Image:Flag-de.gif log2itn ist ein Konverter für NMEA-logfiles. Er kann dies in .gpx und/oder .itn files umwandeln nach verschiendenen Filterregeln. Ferner zeigt er Zusammenfassungen über die gespeicherten Touren an.

Image:flag-fr.gif log2itn est un convertisseur de traces pour fichiers .log NMEA. Il peut les convertir en fichiers .gpx et/ou .itn suivant divers paramétrages. Il affiche également les récapitulatifs des tours enregistrés.

Image:Flag-it.gif log2itn è un programma per convertire e filtrare i file NMEA. Questi possono essere convertiti in .gpx e/o .itn in base ai parametri scelti. Può anche presentare un sommario analitico delle tracce salvate.

Image:flag-nl.gif log2itn is a conversie-tool/filter voor NMEA log bestanden.

Image:Flag-en.giflog2itn permits to generate new .itn and .gpx files from the original .log file.

Example of use:
I make a nice tour. Back at home, I realize that I have set wrong parameters in the TTTracklog-wrapper commandline and i'm not satisfied with my .itn and .gpx files. Using log2itn gives me the possibility to generate new files like I want.

Image:Flag-de.giflog2itn erlaubt ab die originale .log Datei neue .itn und .gpx Dateien zu generieren.

Anwendungsbeispiel:
Ich fahre eine schöne Tour. Zu Hause zurück merke ich dass ich die Befehlzeile in der TTTracklog-wrapper falsch parametrisiert habe und meine .itn und .gpx Dateien gefallen mir nicht. Mittels log2itn kann ich dann neue Dateien generieren, und zwar gemäss mein Verlangen.

Image:flag-fr.giflog2itn permet de générer de nouveaux fichiers .itn et .gpx à partir du fichier .log original.

Exemple d'utilisation:
Je fais un beau tour. De retour à la maison, je remarque que j'ai mal paramétré la ligne de commande dans le fichier TTTracklog-wrapper et mes fichiers .itn et .gpx ne me conviennent pas. Grâce à log2itn, je peux en générer de nouveaux selon mes envies.

Download

Installation

TomTom: install TTTracklog
PC/linux: Install the debian package: (double-click on it), or do a dpkg -i log2itn_xxx.deb.
PC/WINDOWS: extract log2itn.exe from the log2itn-win-x.xx-x.zip. Then open a command windows (cmd) and run it from there by typing log2itn <options> filename.log. Or, if you do not like to use the command window, read the readme.txt and follow the instructions given there.

Features

  • generates universal .GPX format.
  • recognizes individual separate tours.
  • calculates tour statistics, distances, height differences
  • optional automatic decimation of trackpoints with minimal loss of information.
  • optional automatic height correction to height above seelevel.
  • recognization of time zones (not possible with WINDOWS version)

Commandline options

-h --help                   TL  -  Usage
-g <filename.gpx>           L   -  set gpx output to file
-o <filename.itn>           L   -  set itn output to file
-a <filename.alt>           L   -  set altitude output to file
--gi <seconds>[,<seconds>]  TL  -  set minimal gpx trackpoint time interval in seconds. Default: <1>
--ii <minutes>[,<minutes>]  TL  -  set minimal [and maximal] itn waypoint time interval in minutes. Default: <20>
--gm <meters>[,<meters>]    TL  -  set minimal gpx trackpoint distance in meters
--im <meters>[,<meters>]    TL  -  set minimal [and maximal] itn waypoint distance in meters
--gc <degrees>[,<degrees>]  TL  -  set minimal gpx direction difference in degrees
--ic <degrees>[,<degrees>]  TL  -  set minimal [and maximal] itn direction difference in degrees
--aac                       TL  -  altitude auto correction (*1)
--amc <value>               TL  -  manual altitude correction, value in meters (*2)
--agc                       TL  -  altitude correction by simple geoid model (*2)
--gnt                       TL  -  set local time as trackpoint name in the gpx files
--gnd                       TL  -  set tour distance as trackpoint name in the gpx files
--gnn                       TL  -  set trackpoint number as trackpoint name in the gpx files
--gwp                       TL  -  also save waypoints into gpx file 
--ih <seconds>              TL  -  set itn pause time in seconds. Default: <29>
--gh <seconds>              TL  -  set gpx tracksep halt time in seconds. Default: <2> 
--il                        TL  -  don't set local time (set then GMT) for data in the itn files
--ti <seconds>              TL  -  set tour separation time in seconds. Default: <16>
--decimate                  TL  -  decimate the generated points (in gpx) with Douglas-Peucker-Algorithmus (experimental)
-v                          TL  -  be more verbose
-q                          TL  -  be more quiet
(*1) = will not work for log files produced by TomTom GPS chips
(*2) = implemented in Version 1.14 and newer

Known bugs

BugsTomTomPC/linuxPC/WINDOWS
2
  • ERROR Windows XP SP3: "--gnt - set local time as trackpoint name in the gpx files" Local time false with "--gnt" in the gpx files (local time in <name> </name> = GMT time)
    SOLUTION: no solution yet. This is a WINDOWS problem.
    Exactly ! Unable to retrieve this information under DOS only read the Windows registry to allow. See here for API Windows in C++ : http://msdn.microsoft.com/en-us/library/bb540851(VS.85).aspx > See Time Functions...
    ASK: Add a command variable to specify the GMT offset (--gmt+n or --gmt-n) (n=-12:00 at n=+13:00) to have correct local time ?
3
  • ERROR Windows XP SP3: Crash only in the statistics (display screen or file) if latitude longitude value zero in nmea.log. Sample nmea.log :
$GPGGA,094455.000,4225.5527,N,00252.0391,E,1,08,1.0,127.0,M,,,,*01
$GPRMC,094455.000,A,4225.5527,N,00252.0391,E,0.0,143.9,260809,,,A*67
$GPGLL,4225.5527,N,00252.0391,E,094455.000,A,A*5A
$GPGSA,A,3,09,12,15,17,18,22,27,28,,,,,,1.0,*3D
$GPGGA,133208.596,0000.0000,N,00000.0000,E,0,00,0.0,-50.6,M,,,,*11
$GPRMC,133208.596,V,0000.0000,N,00000.0000,E,0.0,0.0,260809,,,N*72
$GPGLL,0000.0000,N,00000.0000,E,133208.596,V,N*40
$GPGSA,A,1,,,,,,,,,,,,,,0.0,*30
$GPVTG,0.0,T,,M,0.0,N,0.0,K,N*02
$GPGGA,133209.596,0000.0000,N,00000.0000,E,0,00,0.0,-50.6,M,,,,*10
$GPRMC,133209.596,V,0000.0000,N,00000.0000,E,0.0,0.0,260809,,,N*73
$GPGLL,0000.0000,N,00000.0000,E,133209.596,V,N*41
$GPGSA,A,1,,,,,,,,,,,,,,0.0,*30
$GPVTG,0.0,T,,M,0.0,N,0.0,K,N*02
$GPGSV,2,1,08,09,22,135,27,27,13,136,30,24,13,151,31,04,11,040,35*7C
$GPGSV,2,2,08,02,00,000,36,14,00,000,42,01,00,000,40,30,00,000,38*78
$GPGGA,133210.596,0000.0000,N,00000.0000,E,0,00,0.0,-50.6,M,,,,*18
$GPRMC,133210.596,V,0000.0000,N,00000.0000,E,0.0,0.0,260809,,,N*7B
$GPGLL,0000.0000,N,00000.0000,E,133210.596,V,N*49
$GPGSA,A,1,,,,,,,,,,,,,,0.0,*30
$GPVTG,0.0,T,,M,0.0,N,0.0,K,N*02

SOLUTION: no solution yet. I never have such NMEA output. This looks really strange. Who else has this problem?


Wishes for next version

  • [SOLVED] It would be great to have an option to save in a txt file the stats that appear on the screen at the end of the process (the same that you get from TTTracklog when the -s option is not used). Lapo Mori 10:51, 18 February 2010 (CET)
    • You can do it with: log2itn > output.txt *.log
    • Or edit Log2itn.bat

For Write on file Stat.txt (create) :

log2itn -o log2itn.itn --ii 0 --im 5000 -g log2itn.gpx --gm 91 --gnt --gnd --ih 600 nmea-2009-05-23.log > Stat.txt

For Merge Stat.txt (create or add) :

log2itn -o log2itn.itn --ii 0 --im 5000 -g log2itn.gpx --gm 91 --gnt --gnd --ih 600 nmea-2009-05-23.log >> Stat.txt


See also: TTTracklog

Personal tools