|
3 | 3 | from qgis.PyQt.QtGui import QIcon |
4 | 4 | from qgis.core import Qgis, QgsProcessingProvider, QgsMessageLog |
5 | 5 |
|
6 | | -from qgis_processing.createTrajectoriesAlgorithm import CreateTrajectoriesAlgorithm |
7 | | -from qgis_processing.splitTrajectoriesAlgorithm import ( |
| 6 | +from .createTrajectoriesAlgorithm import CreateTrajectoriesAlgorithm |
| 7 | +from .splitTrajectoriesAlgorithm import ( |
8 | 8 | ObservationGapSplitterAlgorithm, |
9 | 9 | TemporalSplitterAlgorithm, |
10 | 10 | StopSplitterAlgorithm, |
11 | 11 | ValueChangeSplitterAlgorithm, |
12 | 12 | ) |
13 | | -from qgis_processing.overlayAlgorithm import ( |
| 13 | +from .overlayAlgorithm import ( |
14 | 14 | ClipTrajectoriesByExtentAlgorithm, |
15 | 15 | ClipTrajectoriesByPolygonLayerAlgorithm, |
16 | 16 | IntersectWithPolygonLayerAlgorithm, |
17 | 17 | ) |
18 | | -from qgis_processing.extractPtsAlgorithm import ( |
| 18 | +from .extractPtsAlgorithm import ( |
19 | 19 | ExtractODPtsAlgorithm, |
20 | 20 | ExtractStopsAlgorithm, |
21 | 21 | ) |
22 | | -from qgis_processing.generalizationAlgorithm import ( |
| 22 | +from .generalizationAlgorithm import ( |
23 | 23 | DouglasPeuckerGeneralizerAlgorithm, |
24 | 24 | MinDistanceGeneralizerAlgorithm, |
25 | 25 | MinTimeDeltaGeneralizerAlgorithm, |
26 | 26 | TopDownTimeRatioGeneralizerAlgorithm, |
27 | 27 | ) |
28 | | -from qgis_processing.cleaningAlgorithm import ( |
| 28 | +from .cleaningAlgorithm import ( |
29 | 29 | OutlierCleanerAlgorithm, |
30 | 30 | ) |
31 | 31 |
|
32 | 32 | try: # skmob-based algs |
33 | | - from qgis_processing.privacyAttackAlgorithm import HomeWorkAttack |
| 33 | + from .privacyAttackAlgorithm import HomeWorkAttack |
34 | 34 | except ImportError as e: |
35 | 35 | QgsMessageLog.logMessage(e.msg, "Trajectools", level=Qgis.Info) |
36 | 36 |
|
37 | 37 | try: # gtfs_functions-based algs |
38 | | - from qgis_processing.gtfsAlgorithm import ( |
| 38 | + from .gtfsAlgorithm import ( |
39 | 39 | GtfsStopsAlgorithm, |
40 | 40 | GtfsShapesAlgorithm, |
41 | 41 | GtfsSegmentsAlgorithm, |
|
44 | 44 | QgsMessageLog.logMessage(e.msg, "Trajectools", level=Qgis.Info) |
45 | 45 |
|
46 | 46 | try: # stonesoup-based algs |
47 | | - from qgis_processing.smoothingAlgorithm import KalmanSmootherAlgorithm |
| 47 | + from .smoothingAlgorithm import KalmanSmootherAlgorithm |
48 | 48 | except ImportError as e: |
49 | 49 | QgsMessageLog.logMessage(e.msg, "Trajectools", level=Qgis.Info) |
50 | 50 |
|
|
0 commit comments