
Da-
ta
Fil-
ters
95
This option selects the destination type of this filter to be waypoints. Choose this when you want to convert
tracks or routes into waypoints.
Example 4.15. Converting a track to a sequence of waypoints
Say you you have a KML file that contains a track but you want to convert it to a CSV file that can contain
only waypoints, perhaps to import into a spreadsheet. Use the following command:
gpsbabel -i kml -f blah.kml -x transform,wpt=trk -o csv -F blah.txt
rte option
Transform waypoint(s) or track(s) into route(s) [W/T].
This option selects the destination type of this filter to be routes. Choose this when you want to convert
tracks into waypoints routes. A single route will be created in the sequence they appear in the input.
Example 4.16. Converting a pile of waypoints to a GPX route
Say you you have a data file that came from CSV file that you want to convert to a GPX route that can
be loaded into Mapsource. Use the following command:
gpsbabel -i csv -f blah.txt -x transform,rte=wpt -o gdb -F blah.gdb
trk option
Transform waypoint(s) or route(s) into tracks(s) [W/R].
This option selects the destination type of this filter to be tracks. Choose this when you want to create tracks
from a list of waypoints or routes. A single track will be created in the sequence they appear in the input.
Example 4.17. Converting a pile of waypoints to a GPX track
Say you you have a data file that came from CSV file that you want to convert to a GPX track that can
be loaded into Mapsource. Use the following command:
gpsbabel -i csv -f blah.txt -x transform,trk=wpt -o gdb -F blah.gdb
del option
Delete source data after transformation.
This option, when used in connction with the wpt, rte, or trk options, tells GPSBabel to delete the source
data after conversion. This is most useful if you are trying to avoid duplicated data in the output.
Example 4.18. Convert a GPX track to GPX waypoints, tossing the original track
gpsbabel -i gpx -f blah.gpx -x transform,wpt=trk,del -o gpx -F
converted.gpx
Komentarze do niniejszej Instrukcji