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

Error when trying to execute GPS track / GPS points in CSV file #253

Open
rsantosb opened this issue Nov 24, 2022 · 3 comments
Open

Error when trying to execute GPS track / GPS points in CSV file #253

rsantosb opened this issue Nov 24, 2022 · 3 comments

Comments

@rsantosb
Copy link

I have tried to run the following code (available in example/command_line_example):

GPS trajectory matching in CSV file using fmm:
# XML configuration
fmm fmm_config_csv_trajectory.xml
# Command line arguments
fmm --ubodt ../data/ubodt.txt --network ../data/edges.shp --gps ../data/trips.csv --k 4 -r 0.4 -e 0.5 --output mr.txt

GPS point matching in CSV file using fmm:
# XML configuration
fmm fmm_config_csv_point.xml
# Command line arguments
fmm --ubodt ../data/ubodt.txt --network ../data/edges.shp --gps ../data/gps.csv --gps_point -k 4 -r 0.4 -e 0.5 --output mr.txt

Also the notebook: stmatch_example.ipynb specifically the part "Match GPS data stored in a file".
(I copied in a file fmm_test_new.py the stmatch_example.ipynb).

I always get the following error:

[2022-11-24 10:55:11.856] [critical] [gps_reader.cpp:137] Id id or Geometry column geom not found
Traceback (most recent call last):
File "fmm_test_nuevo.py", line 34, in
status = model.match_gps_file(input_config, result_config, fmm_config)
File "/usr/lib/python2.7/dist-packages/fmm.py", line 1217, in match_gps_file
return _fmm.FastMapMatch_match_gps_file(self, gps_config, result_config, config, use_omp)
RuntimeError: Id id or Geometry column geom not found

I followed all the installation steps correctly, without any error.

@cyang-kth
Copy link
Owner

The GPS data format is not corrected identified by the program.

Compare your data with the two files to check the form including field name

@rsantosb
Copy link
Author

rsantosb commented Nov 24, 2022

I am trying to run the example files and it fails every time.
What can I do?

Thank you!

@Blueicei
Copy link

image

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

3 participants