I've been looking at animating vector data in #QGIS with the Temporal Controller instead of the Time Manager. I started with @tjukanov's brilliant exercise: medium.com/@tjukanov/geog…
I wanted icons not circles, but Icons have directionality & I wanted them to face the right way
Thanks to @HeikkiVesanto giving me the code to find out the direction to the next point in a sequence:
...which I wrapped in a function to convert to degrees, I could use a Data Defined Override to set the rotation.
Now I had to overcome the issue of trains heading east being mirror images of trains heading west. I used InkScape to make two electric train SVG icons to account for this. Note they are facing down to avoid the 90° correction in QGIS as rotation breaks if you go over 360° Image
I used a rule based styling option to use different icons depending on whether the rotation value was above or below 180° and managed to get the trains pointing the right way. The preview in QGIS didn't render the frames fast enough so I had to create the video in a video editor:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tom Armitage

Tom Armitage Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @MapNav_Tom

4 May
I did a comparison of the different hill shading tools in #QGIS and got some amazing results. Each one was blended with a DTM to give a bit of depth. Have a look at this thread for details on the 7 ways I tried, these are the most interesting. 1/n Image
I was using a DSM of Arthur's Seat in Edinburgh. The first method was the most simple, just switch to Hillshading in the Layer Style Panel. Not bad, but a bit low on contrast. 2/n Image
I then tried the Terrain Shading Plugin, I ticked the Bidirectional lighting to boost the contrast. It was a bit disappointing compared to others but the Plugin can be used to calculate other layers which can be combined manually to create much better effects. 3/n Image
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!