1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4//EN" "../../../Tools/dtd/docbook-4.4/docbookx.dtd">
3 <refentry id="gpst" lang="en">
5 <date><![CDATA[$Id$]]></date>
8 <refentrytitle>gpst</refentrytitle>
9 <manvolnum>1</manvolnum>
12 <refname>gpst</refname>
13 <refpurpose>Converts between various GPS formats.</refpurpose>
17 <command>gpst</command>
19 <replaceable>options</replaceable>
21 <arg choice="opt" rep="repeat">
22 <replaceable>file</replaceable>
26 <command>gpst</command>
27 <arg choice="req">-S</arg>
29 <replaceable>options</replaceable>
31 <arg choice="opt" rep="repeat">
32 <replaceable>file</replaceable>
36 <command>gpst</command>
37 <arg choice="req">-u</arg>
39 <replaceable>options</replaceable>
41 <arg choice="opt" rep="repeat">
42 <replaceable>file</replaceable>
46 <refsect1 id="gpst.description">
47 <title>Description</title>
52 <term><option>--chronology</option></term>
54 <para>Check for broken chronology, warn about entries with an
56 If the <option>--xml</option> option is specified, the result
57 of the scan is written to stdout as usual, and all other
59 If the <option>--xml</option> option is
60 <emphasis>not</emphasis> used, it is reported as warnings to
66 <term><option>-d</option>, <option>--skip-dups</option></term>
68 <para>If succeeding identical coordinates are found, print
69 only the first one and ignore the rest.</para>
74 <term><option>-e</option>, <option>--epoch</option></term>
76 <para>Use seconds since 1970-01-01 00:00:00 GMT as date
82 <term><option>--fix</option></term>
84 <para>Comment out entries which is obviously wrong.
85 Use together with <option>--chronology</option> to fix those
87 Does not work with GPX output yet.</para>
92 <term><option>-h</option>, <option>--help</option></term>
94 <para>Send a brief help summary to stdout.</para>
99 <term><option>--inside</option></term>
101 <para>Print only trackpoints inside a rectangle specified by
102 <option>--pos1</option> and <option>--pos2</option>.</para>
107 <term><option>--near</option></term>
109 <para>Add names of the three closest waypoints to the
111 Unfinished and experimental, needs <citerefentry>
112 <refentrytitle>gpsbabel</refentrytitle>
113 <manvolnum>1</manvolnum> </citerefentry>.</para>
118 <term><option>-n</option>, <option>--undefined
119 <replaceable>x</replaceable></option></term>
121 <para>Use <replaceable>x</replaceable> as undefined
127 <term><option>-o</option>, <option>--output-format
128 <replaceable>x</replaceable></option></term>
130 <para>Use output format <replaceable>x</replaceable>:</para>
133 <term><option>clean</option></term>
135 <para>TAB-separated format with longitude, latitude and
141 <term><option>csv</option></term>
143 <para>TAB-separated format:
149 <para>Date of trackpoint.
151 <literal><replaceable>yyyy</replaceable>-<replaceable>mm</replaceable>-<replaceable>dd</replaceable>T<replaceable>hh</replaceable>:<replaceable>mm</replaceable>:<replaceable>ss</replaceable>Z</literal>
152 unless the <option>--epoch</option> option is
154 If so, it’s represented as number of seconds since
155 1970-01-01 00:00:00 UTC.</para>
160 <term>longitude</term>
162 <para>Longitude, decimal degrees.</para>
167 <term>latitude</term>
169 <para>Latitude, decimal degrees.</para>
174 <term>altitude</term>
176 <para>Altitude in metres above sea level.
178 If not present, the corresponding TAB is also
179 printed, to keep the number of columns
184 </variablelist></para>
189 <term><option>gpsml</option> (Default)</term>
191 <para>Line-based XML which makes it easy to edit and
193 In the past, there was this big plan about making this
194 the default storage format, so it was declared as The
195 Honourable Default Output Format.
196 But using GPX is the way to go, so this will probably
197 change in the future.
198 It’s way too <foreignphrase>de facto</foreignphrase> and
199 widely used, so storing GPS data in anything else is
201 Probably not finished yet.</para>
206 <term><option>gpstrans</option></term>
208 <para>The format generated by <citerefentry>
209 <refentrytitle>gpstrans</refentrytitle>
210 <manvolnum>1</manvolnum> </citerefentry>.</para>
215 <term><option>gpx</option></term>
217 <para>Not complete yet, but good enough in most
223 <term><option>poscount</option></term>
225 <para>Creates a 3D plot where areas with many
226 trackpoints are higher than areas with less track
232 <term><option>ps</option></term>
234 <para>Postscript. Unfinished.</para>
239 <term><option>svg</option></term>
241 <para>Unfinished.</para>
246 <term><option>xgraph</option></term>
248 <para>Input format for <citerefentry>
249 <refentrytitle>xgraph</refentrytitle>
250 <manvolnum>1</manvolnum> </citerefentry>.</para>
255 <term><option>ygraph</option></term>
257 <para>Input format for <citerefentry>
258 <refentrytitle>ygraph</refentrytitle>
259 <manvolnum>1</manvolnum> </citerefentry>.</para>
268 <term><option>--outside</option></term>
270 <para>Print only trackpoints outside a rectangle specified by
271 <option>--pos1</option> and <option>--pos2</option>.</para>
277 <replaceable>x</replaceable></option></term>
279 <replaceable>x</replaceable></option></term>
282 <para>Specifies corners of an area rectangle used by the
283 <option>--inside</option> and <option>--outside</option>
285 The <replaceable>x</replaceable> value is in
286 <literal><replaceable>lat</replaceable>,<replaceable>lon</replaceable></literal>
287 format (decimal degrees, negative for west or south).</para>
292 <term><option>-r</option>, <option>--require
293 <replaceable>x</replaceable></option></term>
295 <para>Specify requirements for trackpoints to be written.
296 <replaceable>x</replaceable> is a string with the following
300 <term><option>e</option></term>
302 <para>Print only waypoints which have an
307 <term><option>p</option></term>
309 <para>Print only waypoints which have a position.</para>
313 <term><option>t</option></term>
315 <para>Print only waypoints which have a
324 <term><option>-R</option>, <option>--round
325 <replaceable>x</replaceable>=<replaceable>y</replaceable><optional>,<replaceable>x2</replaceable>=<replaceable>y2</replaceable><optional>...</optional></optional></option></term>
327 <para>Round trackpoint element <replaceable>x</replaceable> to
328 <replaceable>y</replaceable> decimals.</para>
329 <para>Example:</para>
331 <para><option>--round lat=4,lon=5,ele=1</option></para>
337 <term><option>-s</option>, <option>--short-date</option></term>
339 <para>Use short date format.</para>
344 <term><option>-S</option>, <option>--save-to-file
345 <replaceable>x</replaceable></option></term>
348 <para>Save the unconverted data to a file with a filename
349 starting with the timestamp of the first trackpoint.
350 The parameter string <replaceable>x</replaceable> is added at
351 the end of the filename.
352 For the time being this option will ignore all other
355 <para>If several files are specified on the command line,
356 all data will be saved into only one file.
357 This behaviour may change in the future.</para>
363 <term><option>-t</option>,
364 <option>--create-breaks</option></term>
366 <para>Create breaks in track between points with a difference
367 more than the number of seconds specified by the
368 <varname>$PAUSE_LIMIT</varname> variable.</para>
373 <term><option>-u</option>,
374 <option>--comment-out-dups</option></term>
376 <para>Comment out following data with identical position
377 values, only print first entry.</para>
382 <term><option>-v</option>, <option>--verbose</option></term>
384 <para>Verbose output, can be repeated.</para>
389 <term><option>-w</option>,
390 <option>--strip-whitespace</option></term>
392 <para>Strip all unnecessary whitespace.</para>
397 <term><option>-x</option>,
398 <option>--xml</option></term>
400 <para>Create XML output.</para>
406 <term><option>-y</option>,
407 <option>--double-y-scale</option></term>
409 <para>Double Y scale (latitude) to get it right in
415 <term><option>--version</option></term>
417 <para>Print version information.</para>
422 <term><option>--debug</option></term>
424 <para>Print debugging messages.</para>
431 <refsect1 id="gpst.bugs">
434 <para>Pretty incomplete in some areas.
435 Some of the source formats are undocumented and thus incomplete.
436 Some functionality is not working properly, for example the
437 Postscript output.</para>
440 <refsect1 id="gpst.author">
441 <title>Author</title>
443 <para>Made by <personname><firstname>Øyvind</firstname>
444 <othername>A.</othername> <surname>Holm</surname></personname>
445 <email>sunny@sunbase.org</email>.</para>
448 <refsect1 id="gpst.copyright">
449 <title>Copyright</title>
451 <para>Copyleft © <personname><firstname>Øyvind</firstname>
452 <othername>A.</othername> <surname>Holm</surname></personname>
453 <email>sunny@sunbase.org</email>.
454 This is free software; see the file <filename>COPYING</filename> for
455 legalese stuff.</para>
458 <refsect1 id="gpst.license">
459 <title>License</title>
461 <para>This program is free software; you can redistribute it and/or
462 modify it under the terms of the <citetitle>GNU General Public
463 License</citetitle> as published by the <orgname
464 class="nonprofit">Free Software Foundation</orgname>; either version
465 2 of the License, or (at your option) any later version.</para>
467 <para>This program is distributed in the hope that it will be
468 useful, but <emphasis>WITHOUT ANY WARRANTY</emphasis>; without even
469 the implied warranty of <emphasis>MERCHANTABILITY</emphasis> or
470 <emphasis>FITNESS FOR A PARTICULAR PURPOSE</emphasis>.
471 See the GNU General Public License for more details.</para>
473 <para>You should have received a copy of the GNU General Public
474 License along with this program; if not, write to
475 <address>The Free Software Foundation, Inc.
476 <street>59 Temple Place</street>, <otheraddr>Suite 330</otheraddr>
477 <city>Boston</city>, <state>MA</state> <postcode>02111-1307</postcode>
478 <country>USA</country></address></para>
481 <refsect1 id="gpst.seealso">
482 <title>See also</title>
485 <refentrytitle>gpsbabel</refentrytitle>
486 <manvolnum>1</manvolnum>
487 </citerefentry></para>
490 <!-- vim: set tw=72 ts=2 sts=2 sw=2 et fo=tcqw fenc=UTF-8 : -->