3 .\" Author: [see the "Author" section]
4 .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "GPST" "1" "2010-05-01" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 gpst \- Converts between various GPS formats\&.
25 \fBgpst\fR [\fIoptions\fR] [\fIfile\fR...]
27 \fBgpst\fR {\-S} [\fIoptions\fR] [\fIfile\fR...]
32 Check for broken chronology, warn about entries with an old timestamp\&.
35 \fB\-d\fR, \fB\-\-skip\-dups\fR
37 If succeeding identical coordinates are found, print only the first one and ignore the rest\&.
40 \fB\-e\fR, \fB\-\-epoch\fR
42 Use seconds since 1970\-01\-01 00:00:00 GMT as date format\&.
47 Comment out entries which is obviously wrong\&. Use together with
49 to fix those kind of errors\&. Does not work with GPX output yet\&.
52 \fB\-\-from\-date \fR\fB\fIx\fR\fR
56 format\&. Specifies from which date waypoints should be updated\&. No checks for valid date format here, let
58 take care of that\&. All variants it understands can be used here\&.
61 \fB\-h\fR, \fB\-\-help\fR
63 Send a brief help summary to stdout\&.
68 Print only trackpoints inside a rectangle specified by
74 \fB\-n\fR, \fB\-\-undefined \fR\fB\fIx\fR\fR
83 Add names of the three closest waypoints to the trackpoint\&. Unfinished and experimental, needs
84 \fBgpsbabel\fR(1), which is called from the program as
85 \fB/usr/local/bin/gpsbabel\fR\&.
88 \fB\-o\fR, \fB\-\-output\-format \fR\fB\fIx\fR\fR
95 TAB\-separated format with longitude, latitude and altitude\&.
100 TAB\-separated format:
104 Date of trackpoint\&. Format:
105 \fIyyyy\fR\-\fImm\fR\-\fIdd\fRT\fIhh\fR:\fImm\fR:\fIss\fRZ
108 option is specified\&. If so, it\(cqs represented as number of seconds since 1970\-01\-01 00:00:00 UTC\&.
113 Longitude, decimal degrees\&.
118 Latitude, decimal degrees\&.
123 Altitude in metres above sea level\&. Optional\&. If not present, the corresponding TAB is also printed, to keep the number of columns intact\&.
127 \fBgpsml\fR (Default)
129 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
131 and widely used, so storing GPS data in anything else is sheer waste of work\&. Probably not finished yet\&.
136 The format generated by
142 Not complete yet, but good enough in most cases\&.
147 TAB\-separated format for import into
148 PostgreSQL\&. Undefined values are written as
152 option is not specified\&.
157 \fIyyyy\fR\-\fImm\fR\-\fIdd\fRT\fIhh\fR:\fImm\fR:\fIss\fRZ
163 (\fIlat\fR,\fIlon\fR)
168 Altitude in metres above sea level\&.
173 Short name of closest waypoint\&. Calculated in
174 PostgreSQL, so this value is always
180 Distance in decimal degrees to closest waypoint\&. Calculated in
181 PostgreSQL, so this value is always
187 Description of waypoint\&. Calculated in
188 PostgreSQL, so this value is always
195 Output waypoints on a TAB\-separated format:
200 (\fIlat\fR,\fIlon\fR)
210 Elevation in metres above sea level\&.
215 Type of waypoint, same as the GPX
222 Timestamp of waypoint\&.
227 Short waypoint description, used by the GPS as a comment\&. Same as the GPX
234 Long description, not used by the GPS\&. Same as the GPX
241 Source of data, same as the
248 GPS symbol name\&. Same as the
256 Output waypoints as SQL transactions which updates the
265 Creates a 3D plot where areas with many trackpoints are higher than areas with less track points\&.
270 Postscript\&. Unfinished\&.
293 Print only trackpoints outside a rectangle specified by
299 \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
301 Specifies corners of an area rectangle used by the
309 values are specified as decimal degrees, negative for west or south\&.
312 \fB\-r\fR, \fB\-\-require \fR\fB\fIx\fR\fR
314 Specify requirements for trackpoints to be written\&.
316 is a string with the following flags:
320 Print only waypoints which have an elevation\&.
325 Print only waypoints which have a position\&.
330 Print only waypoints which have a timestamp\&.
334 \fB\-R\fR, \fB\-\-round \fR\fB\fIx\fR\fR\fB=\fR\fB\fIy\fR\fR\fB[,\fIx2\fR=\fIy2\fR[\&.\&.\&.]]\fR
336 Round trackpoint element
343 \fB\-\-round lat=4,lon=5,ele=1\fR
346 \fB\-s\fR, \fB\-\-short\-date\fR
348 Use short date format\&.
351 \fB\-S\fR, \fB\-\-save\-to\-file \fR\fB\fIx\fR\fR
353 Save the unconverted data to a file with a filename starting with the timestamp of the first trackpoint\&. The parameter string
355 is added at the end of the filename\&. For the time being this option will ignore all other options\&.
361 .nr an-no-space-flag 1
368 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\&.
373 \fB\-t\fR, \fB\-\-create\-breaks\fR
375 Create breaks in track between points with a difference more than the number of seconds specified by the
380 \fB\-T \fR\fB\fIx\fR\fR, \fB\-\-time\-shift \fR\fB\fIx\fR\fR
384 seconds forwards or backwards in output\&.
386 can be a positive or negative integer\&.
389 \fB\-v\fR, \fB\-\-verbose\fR
391 Verbose output, can be repeated\&.
396 Print program version information\&.
399 \fB\-w\fR, \fB\-\-strip\-whitespace\fR
401 Strip all unnecessary whitespace\&.
404 \fB\-y\fR, \fB\-\-double\-y\-scale\fR
406 Double Y scale (latitude)\&.
411 Print debugging messages\&.
413 .SH "BUGS AND THINGS THAT NEED TO BE DONE"
423 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\&.
434 Remove hardcodings\&.
445 Translate database column names to English\&.
456 Add more tests to cover all command\-line options\&.
462 sunny@sunbase\&.org\&.
467 sunny@sunbase\&.org\&. This is free software; see the file
469 for legalese stuff\&.
472 This program is free software: you can redistribute it and/or modify it under the terms of the
473 GNU General Public License
475 Free Software Foundation, either version 3 of the License, or (at your option) any later version\&.
477 This program is distributed in the hope that it will be useful, but
478 \fIWITHOUT ANY WARRANTY\fR; without even the implied warranty of
479 \fIMERCHANTABILITY\fR
481 \fIFITNESS FOR A PARTICULAR PURPOSE\fR\&. See the GNU General Public License for more details\&.
483 You should have received a copy of the GNU General Public License along with this program\&. If not, see
484 \m[blue]\fB\%http://www.gnu.org/licenses/\fR\m[]\&.