We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c5e08 commit fa6139cCopy full SHA for fa6139c
qgis_processing/qgisUtils.py
@@ -1,7 +1,6 @@
1
import sys
2
import pandas as pd
3
from pyproj import CRS
4
-from movingpandas import TrajectoryCollection
5
from qgis.core import (
6
QgsFeature,
7
QgsGeometry,
@@ -12,6 +11,15 @@
12
11
)
13
from qgis.PyQt.QtCore import QDateTime
14
+try:
15
+ from movingpandas import TrajectoryCollection
16
+except ImportError as error:
17
+ raise ImportError(
18
+ "Missing dependency. To use the trajectory analysis algorithms "
19
+ "please install MovingPandas. For details see: "
20
+ "https://github.com/movingpandas/qgis-processing-trajectory."
21
+ ) from error
22
+
23
24
def trajectories_from_qgis_point_layer(
25
layer, time_field_name, trajectory_id_field, time_format
0 commit comments