GIS AnimationIntroductionThis module describes how to create animations with time series data using the Temporal Controller. The result can be viewed in QGIS or used to create a video. Prepare the SettingsStart a new project, and load a base layer from QuickMapServices - for example OSM Standard Load the source data .../Data/Vector/AFRS_Attended_Incidents.gpkg - you will see that it shows incidents in January 2021 in a grid pattern - there are in some cases many incidents at a single point, as grid references have been truncated for anonymisation purposes Configure the temporal settings for the data Go to the Properties > Temporal tab for the layer, and configure the dialogue as per the screenshot below
You must have a field in the data which is of datatype date - otherwise you won't be be able to use the Temporal Controller
Run the AnimationClick the Temporal Controller button in the Map Navigation Toolbar to open the Temporal Controller panel. Click the Animated Temporal Navigation button to set up the navigation Click the refresh button to set the range to the date range in the data, and set the Step to 1 day. Click the play button to run the animation - you will see the incidents gradually appear on a day by day basis
Update the StylingBecause the points are generalised to avoid identification of the location of individual incidents, many will appear in the same location. To make the map more useful, we can apply point cluster styling. Go to the Symbology settings for the layer Set the styling type at the top of the dialogue to Point Cluster, and leave the defaults in place
Rerun the animation - you will see the cluster values update as the days pass
Add a date/time indicatorTo add an indicator on screen of the current date/time status: Open the Title Label Decoration dialog at View > Decorations > Title Label Check Enable Title Label Use the @map_start_time variable to display the current applicable time, and set the Font, Background and Placement settings
The date/time of the current map will appear on screen
Export for Video ProductionIf you want to create a standalone animation, use the Save button in the panel to export the individual frames to a folder. You can then use standard video production software to generate a video. |