
Da-
ta
Fil-
ters
93
append option
(pop) Append list.
This option is only valid in conjunction with the pop. When it is specified, the topmost collection of data
from the stack is appended to the current collection of data.
discard option
(pop) Discard top of stack.
This option is only valid when used with the pop option. When this option is specified, the popped state
is discarded and the current state remains unchanged.
replace option
(pop) Replace list (default).
This option is only valid when used with the pop option. This is the default behavior of the pop option,
so you should never need to specify it, but it is included for the sake of readability. When this option is
specified, the popped state replaces the current state.
depth option
(swap) Item to use (default=1).
This option is only valid when used along with the swap option. If specified, it indicates which item on
the stack should be swapped with the current state. The default value is 1, which corresponds to the top
of the stack.
Simplify routes (simplify)
The Simplify filter is used to simplify routes and tracks for use with formats that limit the number of points
they can contain or just to reduce the complexity of a route.
The filter attempts to remove points from each route until the number of points or the error is within the
given bounds, while also attempting to preserve the shape of the original route as much as possible.
The quality of the results will vary depending on the density of points in the original route and the length
of the original route.
For example, suppose you have a route from Street Atlas 2003 that you wish to use with a Magellan GPS
receiver that only supports up to 50 points in a route:
gpsbabel -r -i saroute -f RoadTrip.anr -x simplify,count=50 -o magellan
-F grocery.rte
count option
Maximum number of points in route.
This option specifies the maximum number of points which may appear in the simplified route. For ex-
ample, if you specify "count=50", all resulting routes will contain 50 points or fewer.
Kommentare zu diesen Handbüchern