Hamish wrote:
gpsbabel has some filters for converting GPX points to GPX
track lines, the help pages aren't that wonderful, but I've
done it and it works.
here we go,
Convert a KML file with waypoints into a track (treat as untested)
$ gpsbabel -i kml -f maps.kml -x transform,trk=wpt -o gpx -F trk_map.gpx
Hamish