You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this problem during the process of using this plugin. If I set MAX_SEARCH_DISTANCE too small, the code won't run, but if I set it too large, the following problem will occur.
Traceback (most recent call last):
File "C:\Users/f/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Offline-MapMatching\mm_processing\offline_map_matching_algorithm.py", line 198, in processAlgorithm
error_code = mm.startViterbiMatchingProcessing(trajectory_layer,
File "C:\Users/f/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Offline-MapMatching\mm\map_matcher.py", line 128, in startViterbiMatchingProcessing
check_results = self.hidden_model.setTransitions(fast_map_matching)
File "C:\Users/f/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Offline-MapMatching\mm\hidden_states\hidden_model.py", line 203, in setTransitions
observation_distance = math.sqrt(math.pow(observation.point.asPoint().x() - self.trajectory.observations[i - 1].point.asPoint().x(), 2) + math.pow(observation.point.asPoint().y() - self.trajectory.observations[i - 1].point.asPoint().y(), 2))
ValueError: Null geometry cannot be converted to a point.
Execution failed after 0.67 s
I tried the solutions for the previous issues: reprojection of the network and the trajectory to EPSG:25833, reducing trajectory density to 25 meters (using the plugin function Clip Network), and clipping the network to 250 meters around the trajectory (using the plugin function Reduce Trajectory Density). The problem remains.
I uploaded the original road network file and trajectory file.
I encountered this problem during the process of using this plugin. If I set MAX_SEARCH_DISTANCE too small, the code won't run, but if I set it too large, the following problem will occur.
Traceback (most recent call last):
File "C:\Users/f/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Offline-MapMatching\mm_processing\offline_map_matching_algorithm.py", line 198, in processAlgorithm
error_code = mm.startViterbiMatchingProcessing(trajectory_layer,
File "C:\Users/f/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Offline-MapMatching\mm\map_matcher.py", line 128, in startViterbiMatchingProcessing
check_results = self.hidden_model.setTransitions(fast_map_matching)
File "C:\Users/f/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Offline-MapMatching\mm\hidden_states\hidden_model.py", line 203, in setTransitions
observation_distance = math.sqrt(math.pow(observation.point.asPoint().x() - self.trajectory.observations[i - 1].point.asPoint().x(), 2) + math.pow(observation.point.asPoint().y() - self.trajectory.observations[i - 1].point.asPoint().y(), 2))
ValueError: Null geometry cannot be converted to a point.
Execution failed after 0.67 s
I tried the solutions for the previous issues: reprojection of the network and the trajectory to EPSG:25833, reducing trajectory density to 25 meters (using the plugin function Clip Network), and clipping the network to 250 meters around the trajectory (using the plugin function Reduce Trajectory Density). The problem remains.
I uploaded the original road network file and trajectory file.
I need help to solve this issue, thank you.
shiyan.zip
shiyan.zip
The text was updated successfully, but these errors were encountered: