
Animate Your Tracklogs #56
Chapter 5, Mapping with Gadgets
|
253
HACK
The animation at http://www.mappinghacks.com/projects/animate uses the
sample script animate.cgi, which comes with the
Geo::Track::Animate mod-
ule, in the eg directory. This serves as a good example of how to use the
module.
The animate.cgi script accepts a single GPX file, but
Geo::Track::Animate
accepts multiple tracklogs and can animate all of them. See the example in
the script eg/animate_tracks.pl, which allows you to animate multiple GPX
track files, with an optional file of waypoints:
$ ./animate_tracks.pl -wayfile mywaypoints.gpx tk*.gpx
This command will animate the tracklogs in all of the GPX files that start out
with the letters
tk and overlay the waypoints contained in mywaypoints.gpx.
The output file will be stored in testfile.svg.
See Also
The “Geo::Track::Animate” page at http://www.mappinghacks.com/projects/
animate for more examples and sample code.
Figure 5-28. Trust me: on the Web, this swings