3 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
8 .TH "GPST" "1" "$Id$" "" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 gpst \- Converts between various GPS formats.
17 \fBgpst\fR [\fIoptions\fR] [\fIfile\fR...]
19 \fBgpst\fR {\-S} [\fIoptions\fR] [\fIfile\fR...]
21 \fBgpst\fR {\-u} [\fIoptions\fR] [\fIfile\fR...]
26 Check for broken chronology, warn about entries with an old timestamp.
29 \fB\-d\fR, \fB\-\-skip\-dups\fR
31 If succeeding identical coordinates are found, print only the first one and ignore the rest.
34 \fB\-e\fR, \fB\-\-epoch\fR
36 Use seconds since 1970\-01\-01 00:00:00 GMT as date format.
41 Comment out entries which is obviously wrong. Use together with
43 to fix those kind of errors. Does not work with GPX output yet.
46 \fB\-\-from\-date \fR\fB\fIx\fR\fR
50 format. Specifies from which date waypoints should be updated. No checks for valid date format here, let
52 take care of that. All variants it understands can be used here.
55 \fB\-h\fR, \fB\-\-help\fR
57 Send a brief help summary to stdout.
62 Print only trackpoints inside a rectangle specified by
68 \fB\-n\fR, \fB\-\-undefined \fR\fB\fIx\fR\fR
77 Add names of the three closest waypoints to the trackpoint. Unfinished and experimental, needs
78 \fBgpsbabel\fR(1), which is called from the program as
79 \fB/usr/local/bin/gpsbabel\fR.
82 \fB\-o\fR, \fB\-\-output\-format \fR\fB\fIx\fR\fR
90 TAB\-separated format with longitude, latitude and altitude.
95 TAB\-separated format:
100 Date of trackpoint. Format:
101 \fIyyyy\fR\-\fImm\fR\-\fIdd\fRT\fIhh\fR:\fImm\fR:\fIss\fRZ
104 option is specified. If so, it\(cqs represented as number of seconds since 1970\-01\-01 00:00:00 UTC.
109 Longitude, decimal degrees.
114 Latitude, decimal degrees.
119 Altitude in metres above sea level. Optional. If not present, the corresponding TAB is also printed, to keep the number of columns intact.
124 \fBgpsml\fR (Default)
126 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
128 and widely used, so storing GPS data in anything else is sheer waste of work. Probably not finished yet.
133 The format generated by
139 Not complete yet, but good enough in most cases.
144 TAB\-separated format for import into
145 PostgreSQL. Undefined values are written as
149 option is not specified.
155 \fIyyyy\fR\-\fImm\fR\-\fIdd\fRT\fIhh\fR:\fImm\fR:\fIss\fRZ
161 (\fIlat\fR,\fIlon\fR)
166 Altitude in metres above sea level.
171 Short name of closest waypoint. Calculated in
172 PostgreSQL, so this value is always
178 Distance in decimal degrees to closest waypoint. Calculated in
179 PostgreSQL, so this value is always
185 Description of waypoint. Calculated in
186 PostgreSQL, so this value is always
192 Distance to trackpoint in decimal degrees from a defined
194 position. This is calculated in
195 PostgreSQL, so the field value is always
203 Output waypoints on a TAB\-separated format:
209 (\fIlat\fR,\fIlon\fR)
219 Elevation in metres above sea level.
224 Type of waypoint, same as the GPX
231 Timestamp of waypoint.
236 Short waypoint description, used by the GPS as a comment. Same as the GPX
243 Long description, not used by the GPS. Same as the GPX
250 Source of data, same as the
257 GPS symbol name. Same as the
266 Output waypoints as SQL transactions which updates the
275 Creates a 3D plot where areas with many trackpoints are higher than areas with less track points.
280 Postscript. Unfinished.
304 Print only trackpoints outside a rectangle specified by
310 \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
312 Specifies corners of an area rectangle used by the
320 values are specified as decimal degrees, negative for west or south.
323 \fB\-r\fR, \fB\-\-require \fR\fB\fIx\fR\fR
325 Specify requirements for trackpoints to be written.
327 is a string with the following flags:
332 Print only waypoints which have an elevation.
337 Print only waypoints which have a position.
342 Print only waypoints which have a timestamp.
347 \fB\-R\fR, \fB\-\-round \fR\fB\fIx\fR\fR\fB=\fR\fB\fIy\fR\fR\fB[,\fIx2\fR=\fIy2\fR[...]]\fR
349 Round trackpoint element
356 \fB\-\-round lat=4,lon=5,ele=1\fR
359 \fB\-s\fR, \fB\-\-short\-date\fR
361 Use short date format.
364 \fB\-S\fR, \fB\-\-save\-to\-file \fR\fB\fIx\fR\fR
366 Save the unconverted data to a file with a filename starting with the timestamp of the first trackpoint. The parameter string
368 is added at the end of the filename. For the time being this option will ignore all other options.
371 .nr an-no-space-flag 1
375 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.
378 \fB\-t\fR, \fB\-\-create\-breaks\fR
380 Create breaks in track between points with a difference more than the number of seconds specified by the
385 \fB\-u\fR, \fB\-\-comment\-out\-dups\fR
387 Comment out following data with identical position values, only print first entry.
390 \fB\-v\fR, \fB\-\-verbose\fR
392 Verbose output, can be repeated.
397 Print program version information.
400 \fB\-w\fR, \fB\-\-strip\-whitespace\fR
402 Strip all unnecessary whitespace.
405 \fB\-y\fR, \fB\-\-double\-y\-scale\fR
407 Double Y scale (latitude).
412 Print debugging messages.
414 .SH "BUGS AND THINGS THAT NEED TO BE DONE"
417 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.
420 Remove hardcodings, for example the
422 position used to calculate the
427 Translate database column names to English.
430 Add more tests to cover all command\-line options.
440 <sunny@sunbase.org>. This is free software; see the file
445 This program is free software; you can redistribute it and/or modify it under the terms of the
446 GNU General Public License
448 Free Software Foundation; either version 2 of the License, or (at your option) any later version.
450 This program is distributed in the hope that it will be useful, but
451 \fIWITHOUT ANY WARRANTY\fR; without even the implied warranty of
452 \fIMERCHANTABILITY\fR
454 \fIFITNESS FOR A PARTICULAR PURPOSE\fR. See the GNU General Public License for more details.
456 You should have received a copy of the GNU General Public License along with this program; if not, write to
460 The Free Software Foundation, Inc.
461 59 Temple Place, Suite 330
462 Boston, MA 02111\-1307