2 .\" Author: [see the "Author" section]
3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
5 .\" Manual: [FIXME: manual]
6 .\" Source: [FIXME: source]
9 .TH "GPST" "1" "$Id$" "[FIXME: source]" "[FIXME: manual]"
10 .\" -----------------------------------------------------------------
11 .\" * (re)Define some macros
12 .\" -----------------------------------------------------------------
13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 .\" toupper - uppercase a string (locale-aware)
15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 .\" SH-xref - format a cross-reference to an SH section
23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 .\" SH - level-one heading that works better for non-TTY output
34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36 .\" put an extra blank line of space above the head in non-TTY output
43 .nr an-prevailing-indent \\n[IN]
47 .HTML-TAG ".NH \\n[an-level]"
49 .nr an-no-space-flag 1
51 \." make the size of the head bigger
56 .\" if n (TTY output), use uppercase
61 .\" if not n (not TTY), use normal case (not uppercase)
65 .\" if not n (not TTY), put a border/line under subheading
70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71 .\" SS - level-two heading that works better for non-TTY output
72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77 .nr an-prevailing-indent \\n[IN]
82 .nr an-no-space-flag 1
85 \." make the size of the head bigger
91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92 .\" BB/BE - put background/screen (filled box) around block of text
93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106 .if "\\$2"adjust-for-leading-newline" \{\
114 .nr BW \\n(.lu-\\n(.i
117 .ie "\\$2"adjust-for-leading-newline" \{\
118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133 .\" BM/EM - put colored marker in margin next to block of text
134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
159 .\" -----------------------------------------------------------------
160 .\" * set default formatting
161 .\" -----------------------------------------------------------------
162 .\" disable hyphenation
164 .\" disable justification (adjust text to left margin only)
166 .\" -----------------------------------------------------------------
167 .\" * MAIN CONTENT STARTS HERE *
168 .\" -----------------------------------------------------------------
170 gpst \- Converts between various GPS formats\&.
173 .HP \w'\fBgpst\fR\ 'u
174 \fBgpst\fR [\fIoptions\fR] [\fIfile\fR...]
177 .HP \w'\fBgpst\fR\ 'u
178 \fBgpst\fR {\-S} [\fIoptions\fR] [\fIfile\fR...]
184 Check for broken chronology, warn about entries with an old timestamp\&.
187 \fB\-d\fR, \fB\-\-skip\-dups\fR
189 If succeeding identical coordinates are found, print only the first one and ignore the rest\&.
192 \fB\-e\fR, \fB\-\-epoch\fR
194 Use seconds since 1970\-01\-01 00:00:00 GMT as date format\&.
199 Comment out entries which is obviously wrong\&. Use together with
201 to fix those kind of errors\&. Does not work with GPX output yet\&.
204 \fB\-\-from\-date \fR\fB\fIx\fR\fR
208 format\&. Specifies from which date waypoints should be updated\&. No checks for valid date format here, let
210 take care of that\&. All variants it understands can be used here\&.
213 \fB\-h\fR, \fB\-\-help\fR
215 Send a brief help summary to stdout\&.
220 Print only trackpoints inside a rectangle specified by
226 \fB\-n\fR, \fB\-\-undefined \fR\fB\fIx\fR\fR
230 as undefined value\&.
235 Add names of the three closest waypoints to the trackpoint\&. Unfinished and experimental, needs
236 \fBgpsbabel\fR(1), which is called from the program as
237 \fB/usr/local/bin/gpsbabel\fR\&.
240 \fB\-o\fR, \fB\-\-output\-format \fR\fB\fIx\fR\fR
247 TAB\-separated format with longitude, latitude and altitude\&.
252 TAB\-separated format:
256 Date of trackpoint\&. Format:
257 \FC\fIyyyy\fR\-\fImm\fR\-\fIdd\fRT\fIhh\fR:\fImm\fR:\fIss\fRZ\F[]
260 option is specified\&. If so, it\(cqs represented as number of seconds since 1970\-01\-01 00:00:00 UTC\&.
265 Longitude, decimal degrees\&.
270 Latitude, decimal degrees\&.
275 Altitude in metres above sea level\&. Optional\&. If not present, the corresponding TAB is also printed, to keep the number of columns intact\&.
279 \fBgpsml\fR (Default)
281 Line\-based XML which makes it easy to edit and grep\&. In the past, there was this big plan about making this the default storage format, so it was declared as The Honourable Default Output Format\&. But using GPX is the way to go, so this will probably change in the future\&. It\(cqs way too
283 and widely used, so storing GPS data in anything else is sheer waste of work\&. Probably not finished yet\&.
288 The format generated by
294 Not complete yet, but good enough in most cases\&.
299 TAB\-separated format for import into
300 PostgreSQL\&. Undefined values are written as
304 option is not specified\&.
309 \FC\fIyyyy\fR\-\fImm\fR\-\fIdd\fRT\fIhh\fR:\fImm\fR:\fIss\fRZ\F[]
315 \FC(\fIlat\fR,\fIlon\fR)\F[]
320 Altitude in metres above sea level\&.
325 Short name of closest waypoint\&. Calculated in
326 PostgreSQL, so this value is always
332 Distance in decimal degrees to closest waypoint\&. Calculated in
333 PostgreSQL, so this value is always
339 Description of waypoint\&. Calculated in
340 PostgreSQL, so this value is always
346 Distance to trackpoint in decimal degrees from a defined
348 position\&. This is calculated in
349 PostgreSQL, so the field value is always
356 Output waypoints on a TAB\-separated format:
361 \FC(\fIlat\fR,\fIlon\fR)\F[]
371 Elevation in metres above sea level\&.
376 Type of waypoint, same as the GPX
383 Timestamp of waypoint\&.
388 Short waypoint description, used by the GPS as a comment\&. Same as the GPX
395 Long description, not used by the GPS\&. Same as the GPX
402 Source of data, same as the
409 GPS symbol name\&. Same as the
417 Output waypoints as SQL transactions which updates the
426 Creates a 3D plot where areas with many trackpoints are higher than areas with less track points\&.
431 Postscript\&. Unfinished\&.
454 Print only trackpoints outside a rectangle specified by
460 \fB\-\-pos1 \fR\fB\fIx1\fR\fR\fB,\fR\fB\fIy1\fR\fR, \fB\-\-pos2 \fR\fB\fIx2\fR\fR\fB,\fR\fB\fIy2\fR\fR
462 Specifies corners of an area rectangle used by the
470 values are specified as decimal degrees, negative for west or south\&.
473 \fB\-r\fR, \fB\-\-require \fR\fB\fIx\fR\fR
475 Specify requirements for trackpoints to be written\&.
477 is a string with the following flags:
481 Print only waypoints which have an elevation\&.
486 Print only waypoints which have a position\&.
491 Print only waypoints which have a timestamp\&.
495 \fB\-R\fR, \fB\-\-round \fR\fB\fIx\fR\fR\fB=\fR\fB\fIy\fR\fR\fB[,\fIx2\fR=\fIy2\fR[\&.\&.\&.]]\fR
497 Round trackpoint element
504 \fB\-\-round lat=4,lon=5,ele=1\fR
507 \fB\-s\fR, \fB\-\-short\-date\fR
509 Use short date format\&.
512 \fB\-S\fR, \fB\-\-save\-to\-file \fR\fB\fIx\fR\fR
514 Save the unconverted data to a file with a filename starting with the timestamp of the first trackpoint\&. The parameter string
516 is added at the end of the filename\&. For the time being this option will ignore all other options\&.
523 .nr an-no-space-flag 1
530 If several files are specified on the command line, all data will be saved into only one file\&. This behaviour may change in the future\&.
536 \fB\-t\fR, \fB\-\-create\-breaks\fR
538 Create breaks in track between points with a difference more than the number of seconds specified by the
543 \fB\-T \fR\fB\fIx\fR\fR, \fB\-\-time\-shift \fR\fB\fIx\fR\fR
547 seconds forwards or backwards in output\&.
549 can be a positive or negative integer\&.
552 \fB\-v\fR, \fB\-\-verbose\fR
554 Verbose output, can be repeated\&.
559 Print program version information\&.
562 \fB\-w\fR, \fB\-\-strip\-whitespace\fR
564 Strip all unnecessary whitespace\&.
567 \fB\-y\fR, \fB\-\-double\-y\-scale\fR
569 Double Y scale (latitude)\&.
574 Print debugging messages\&.
576 .SH "Bugs and things that need to be done"
586 Pretty incomplete in some areas\&. Some of the source formats are undocumented and thus incomplete\&. Some functionality is not working properly, for example the Postscript output\&.
597 Remove hardcodings, for example the
599 position used to calculate the
612 Translate database column names to English\&.
623 Add more tests to cover all command\-line options\&.
629 \FCsunny@sunbase\&.org\F[]\&.
634 \FCsunny@sunbase\&.org\F[]\&. This is free software; see the file
636 for legalese stuff\&.
639 This program is free software; you can redistribute it and/or modify it under the terms of the
640 GNU General Public License
642 Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
644 This program is distributed in the hope that it will be useful, but
645 \fIWITHOUT ANY WARRANTY\fR; without even the implied warranty of
646 \fIMERCHANTABILITY\fR
648 \fIFITNESS FOR A PARTICULAR PURPOSE\fR\&. See the GNU General Public License for more details\&.
650 You should have received a copy of the GNU General Public License along with this program; if not, write to
658 The Free Software Foundation, Inc\&.
659 59 Temple Place, Suite 330
660 Boston, MA 02111\-1307