Skip to content

Commit c54e484

Browse files
authored
Raise error when MovingPandas version is too low, fixes #41
1 parent f128511 commit c54e484

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

qgis_processing/overlayAlgorithm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ def initAlgorithm(self, config=None):
131131
optional=False,
132132
)
133133
)
134+
135+
import movingpandas as mpd
136+
mpd_version = mpd.__version__
137+
if mpd_version < '0.18.0':
138+
raise EnvironmentError("The Intersect trajectories with polygon layer algorithm "
139+
"requires MovingPandas >= 0.18 "
140+
f"but only {mpd_version} is installed.")
134141

135142
def name(self):
136143
return "intersect_traj_vector"

0 commit comments

Comments
 (0)