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

Add readme part for how to work with ubodt_gen #246

Closed
iman4000 opened this issue Jul 12, 2022 · 2 comments
Closed

Add readme part for how to work with ubodt_gen #246

iman4000 opened this issue Jul 12, 2022 · 2 comments

Comments

@iman4000
Copy link

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I just download my .shp files from geofabrik but when i want to make output file with the command it gave me this error:

pio@fmm:~/fmm/example/command_line_example$ ubodt_gen ubodt_config_omp.xml
[info][ubodt_gen_app_config.cpp:28 ] Read configuration from xml file: ubodt_config_omp.xml
[info][ubodt_gen_app_config.cpp:38 ] Read configuration from xml file done
[info][ubodt_gen_app_config.cpp:74 ] ----    Print configuration   ----
[info][network_config.cpp:6  ] NetworkConfig
[info][network_config.cpp:7  ] File name: ../data/gis_osm_roads_free_1.shp
[info][network_config.cpp:8  ] ID name: id
[info][network_config.cpp:9  ] Source name: source
[info][network_config.cpp:10 ] Target name: target
[info][ubodt_gen_app_config.cpp:76 ] Delta 3
[info][ubodt_gen_app_config.cpp:77 ] Output file ../data/ubodt.txt
[info][ubodt_gen_app_config.cpp:78 ] Log level 2-info
[info][ubodt_gen_app_config.cpp:79 ] Use omp true
[info][ubodt_gen_app_config.cpp:80 ] ---- Print configuration done ----
[info][ubodt_gen_app_config.cpp:97 ] Validating configuration for UBODT construction
[warning][ubodt_gen_app_config.cpp:102] Overwrite result file ../data/ubodt.txt
[info][ubodt_gen_app_config.cpp:118] Validating done.
[info][network.cpp:72 ] Read network from file ../data/gis_osm_roads_free_1.shp
[critical][network.cpp:97 ] Field not found: id index -1, source index -1, target index -1
terminate called after throwing an instance of 'std::runtime_error'
  what():  Field not found: id index -1, source index -1, target index -1
Aborted (core dumped)

and i completely don't know what should i do...
can you please help me for this feature?

@cyang-kth
Copy link
Owner

I think you need to use network downloaded from osmnx which has topology information.

#138

@iman4000
Copy link
Author

I did try lots of methods to make edges and nodes and only methods that is valid is python program you wrote that use osmnx!
thanks for your help

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

2 participants