
Da-
ta
Fil-
ters
91
Example 4.14. Using the discard filter
gpsbabel -i gpx -f in.gpx -x discard,hdop=10,vdop=20,hdopandvdop -o
gpx -F out.gpx
Contributed by Tobias Minich.
hdop option
Suppress waypoints with higher hdop.
This option specifies the maximum allowable Horizontal Dilution of Precision (HDOP). By default, any
point with an HDOP in excess of this value will be discarded regardless of its VDOP, but see hdopand-
vdop.
vdop option
Suppress waypoints with higher vdop.
This option specifies the maximum allowable Vertical Dilution of Precision (VDOP). By default, any point
with an VDOP in excess of this value will be discarded regardless of its HDOP, but see hdopandvdop.
hdopandvdop option
Link hdop and vdop supression with AND.
If this option is used, only points that exceed both the maximum allowable HDOP and the maximum
allowable VDOP will be discarded. This option requires that both the hdop and vdop options be specified.
Reverse stops within routes (reverse)
The reverse filter is used to reverse tracks and routes. It's mostly useful for those few formats where
track/route sequence matters and there isn't a way to reverse them using the program itself.
The reversal is performed in the laziest way possible. Timestamps are kept with the original waypoints so
the resulting track or route will have the interesting characteristic that time runs backwards. This tends to
make Magellan Mapsend, in particular, do a wierd thing and place each waypoint on a separate day.
Additionally, if you're using this to reverse a route that navigates, say, an exit ramp or a one way street,
you will be in for unpleasant ride. application cares about timestamps
Save and restore waypoint lists (stack)
This filter is designed to solve advanced problems that involve shuffling multiple lists of waypoints, tracks,
or routes.
The stack filter can be used to save the current state of the entire collection of data. That state is placed
on top of a stack of collections, so you can simultaneously have as many stored collections of data as you
can fit in your computer's memory.
The stack filter can be used in conjunction with other filters to implement a "union" or "logical or" func-
tionality. The basic idea is to use the stack to store copies of the original list of waypoints, then use the
Komentarze do niniejszej Instrukcji