[OpenLayers-Users] ANN: gpxanim
Rodney Lorrimar
dev at rodney.id.au
Mon Apr 16 08:07:55 EDT 2012
Hello OpenLayers Users,
I have made a little script called gpxanim creates animated maps from
GPX tracks. Its purpose is for making map movies which can be used in
video productions.
It will plot the track as a line and rotate the map so that the
direction of travel is always "up". The track is interpolated to achieve
smooth animation.
Here is an example of its output: http://youtu.be/7-tOJGSVWkc
How it works
1. There are two components of gpxanim: a python script which controls
the process, and a javascript module which updates the animation each
frame.
2. It uses OpenLayers to render the map tiles and GPX track. The
map div is rotated with CSS.
3. WebKitGTK runs a small web page containing the map widget.
4. Every frame, a screenshot is captured of the map and fed into a
GStreamer pipeline which creates an Ogg Theora video file.
The code's not pretty or fast but it works. There are a few options but
you will most probably need to modify it to suit your needs.
More details and the code are here:
https://github.com/rodneythellama/gpxanim
Cheers,
Rodney
More information about the Users
mailing list