qgis-processing-trajectory icon indicating copy to clipboard operation
qgis-processing-trajectory copied to clipboard

Trajectory tools for the QGIS Processing toolbox

QGIS Processing Trajectools

The Trajectools plugin adds trajectory analysis algorithms to the QGIS Processing toolbox.

trajectools

Requirements

Trajectools requires MovingPandas (a Python library for movement data analysis) and optionally integrates scikit-mobility and gtfs_functions.

The recommended way to install these dependencies is through conda/mamba:

(base) conda create -n qgis -c conda-forge python=3.9 
(base) conda activate qgis
(qgis) mamba install -c conda-forge qgis movingpandas scikit-mobility
(qgis) pip install gtfs_functions

(More details: https://anitagraser.com/2023/01/21/pyqgis-jupyter-notebooks-on-windows-using-conda/)

The Trajectools plugin can be installed directly in QGIS using the built-in Plugin Manager:

plugin manager

Figure 1: QGIS Plugin Manager with Trajectools plugin installed.

image

Figure 2: Trajectools (v2.1) algorithms in the QGIS Processing toolbox

Examples

The individual Trajectools algorithms are flexible and modular and can therefore be used on a wide array on input datasets, including, for example, the open Microsoft Geolife dataset a sample of which is included in the plugin repo:

image

Trajectools clipping screenshot