cyang-kth/fmm

Empty Mr.txt

dyltricks opened this issue · 2 comments

Introduction to Problem:

It seems that when I run fmm or stmatch I get an empty mr.txt output that has: 0;;LINESTRING()
I am not sure what the problem is. I have downloaded my network from the script found at https://github.com/cyang-kth/osm_mapmatching
I checked and it has two links for bidirectional streets with opposite nodes listed for the target and sources. I have a feeling that maybe its my gps data format?

GPS Format

For my GPS data I had GPS points in which I plotted in ArcGIS Pro and used point to line function to create a linestring. I then used the shapefile created as my GPS Trajectory.

FMM v Stmatch
I read that we should be using stmatch if we have a relatively large network, and additionally that stmatch doesn't need to be precombuted. Does this mean I don't need to run the following lines before trying to match:
ubodt_gen ubodt_config.xml
ubodt_gen --network ../data/edges.shp --output ubodt.txt --delta 3
stmatch stmatch_config.xml

For my GPS data I had GPS points in which I plotted in ArcGIS Pro and used point to line function to create a linestring. I then used the shapefile created as my GPS Trajectory.

proj.db

The only error I get is that it can't find proj.db, is this required?

Attached below is my gps trajectory and network files, here is the lines of codes I have been using to run stmatch:
stmatch --network ./data/graph_shapefile/edges.shp --gps ./gps_linestring.shp -k 10 -r 4 -e 1 --output mr.txt --source u --target v --gps_id ID --network_id osmid --reverse_tolerance 1
fmm_provo_github.zip

It seems to be incomplete installation of GDAL which misses environment variables.

https://gis.stackexchange.com/questions/326968/ogr2ogr-error-1-proj-pj-obj-create-cannot-find-proj-db

I fixed the Proj.db problem and am able to run without error but my output still comes out empty