Add function to calculate QGIS color map from trajectory table.