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
347 Output waypoints on a TAB\-separated format:
352 \FC(\fIlat\fR,\fIlon\fR)\F[]
362 Elevation in metres above sea level\&.
367 Type of waypoint, same as the GPX
374 Timestamp of waypoint\&.
379 Short waypoint description, used by the GPS as a comment\&. Same as the GPX
386 Long description, not used by the GPS\&. Same as the GPX
393 Source of data, same as the
400 GPS symbol name\&. Same as the
408 Output waypoints as SQL transactions which updates the
417 Creates a 3D plot where areas with many trackpoints are higher than areas with less track points\&.
422 Postscript\&. Unfinished\&.
445 Print only trackpoints outside a rectangle specified by
451 \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
453 Specifies corners of an area rectangle used by the
461 values are specified as decimal degrees, negative for west or south\&.
464 \fB\-r\fR, \fB\-\-require \fR\fB\fIx\fR\fR
466 Specify requirements for trackpoints to be written\&.
468 is a string with the following flags:
472 Print only waypoints which have an elevation\&.
477 Print only waypoints which have a position\&.
482 Print only waypoints which have a timestamp\&.
486 \fB\-R\fR, \fB\-\-round \fR\fB\fIx\fR\fR\fB=\fR\fB\fIy\fR\fR\fB[,\fIx2\fR=\fIy2\fR[\&.\&.\&.]]\fR
488 Round trackpoint element
495 \fB\-\-round lat=4,lon=5,ele=1\fR
498 \fB\-s\fR, \fB\-\-short\-date\fR
500 Use short date format\&.
503 \fB\-S\fR, \fB\-\-save\-to\-file \fR\fB\fIx\fR\fR
505 Save the unconverted data to a file with a filename starting with the timestamp of the first trackpoint\&. The parameter string
507 is added at the end of the filename\&. For the time being this option will ignore all other options\&.
514 .nr an-no-space-flag 1
521 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\&.
527 \fB\-t\fR, \fB\-\-create\-breaks\fR
529 Create breaks in track between points with a difference more than the number of seconds specified by the
534 \fB\-T \fR\fB\fIx\fR\fR, \fB\-\-time\-shift \fR\fB\fIx\fR\fR
538 seconds forwards or backwards in output\&.
540 can be a positive or negative integer\&.
543 \fB\-v\fR, \fB\-\-verbose\fR
545 Verbose output, can be repeated\&.
550 Print program version information\&.
553 \fB\-w\fR, \fB\-\-strip\-whitespace\fR
555 Strip all unnecessary whitespace\&.
558 \fB\-y\fR, \fB\-\-double\-y\-scale\fR
560 Double Y scale (latitude)\&.
565 Print debugging messages\&.
567 .SH "Bugs and things that need to be done"
577 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\&.
588 Remove hardcodings\&.
599 Translate database column names to English\&.
610 Add more tests to cover all command\-line options\&.
616 \FCsunny@sunbase\&.org\F[]\&.
621 \FCsunny@sunbase\&.org\F[]\&. This is free software; see the file
623 for legalese stuff\&.
626 This program is free software; you can redistribute it and/or modify it under the terms of the
627 GNU General Public License
629 Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
631 This program is distributed in the hope that it will be useful, but
632 \fIWITHOUT ANY WARRANTY\fR; without even the implied warranty of
633 \fIMERCHANTABILITY\fR
635 \fIFITNESS FOR A PARTICULAR PURPOSE\fR\&. See the GNU General Public License for more details\&.
637 You should have received a copy of the GNU General Public License along with this program; if not, write to
645 The Free Software Foundation, Inc\&.
646 59 Temple Place, Suite 330
647 Boston, MA 02111\-1307