Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAX_SEARCH_DISTANCE #50

Open
Feifei413666 opened this issue Nov 23, 2023 · 0 comments
Open

MAX_SEARCH_DISTANCE #50

Feifei413666 opened this issue Nov 23, 2023 · 0 comments

Comments

@Feifei413666
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant