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

fatal error during building extract-conditionals #4852

Closed
safe-bug opened this issue Feb 4, 2018 · 8 comments
Closed

fatal error during building extract-conditionals #4852

safe-bug opened this issue Feb 4, 2018 · 8 comments

Comments

@safe-bug
Copy link

safe-bug commented Feb 4, 2018

Hello
I'm trying to make extract-conditionals using these two commands:

cmake -DBUILD_TOOLS=ON ..
make osrm-extract-conditionals

my boost version is 1.62.0 but during building it returns a fatal error

src/tools/extract-conditionals.cpp:1:42: fatal error: tools/extract-conditionals.hpp: No such file or directory
compilation terminated.
CMakeFiles/osrm-extract-conditionals.dir/build.make:62: recipe for target 'CMakeFiles/osrm-extract-conditionals.dir/src/tools/extract-conditionals.cpp.o' failed
make[3]: *** [CMakeFiles/osrm-extract-conditionals.dir/src/tools/extract-conditionals.cpp.o] Error 1

It looks like the extract-conditionals.hpp does not exist in files. How can I find/fix it?

Thanks

@oxidase
Copy link
Contributor

oxidase commented Feb 5, 2018

@behizz osrm-extract-conditionals is a testing tool for collecting OSM features with conditionals. It is not supported since moving the code part to the updater library and will be removed from the code base.

To compile osrm-extract-conditionals you can checkout 12f4770

@safe-bug
Copy link
Author

safe-bug commented Feb 6, 2018

Thanks for the answer @oxidase , I used the tool but it's not storing anything to the file.
I'm using the latest OSRM version, is it needed to use a csv file for using conditional restrictions now or OSRM doesn't use it anymore and extracts it from the OSM file?

@oxidase
Copy link
Contributor

oxidase commented Feb 6, 2018

You don't need to use csv files. osrm-extractor --parse-conditional-restrictions saves conditional restrictions to .restrictions files and later conditions can be used in contraction as osrm-contract --parse-conditionals-from-now 1517908115 --time-zone-file tz.json

@safe-bug
Copy link
Author

Thanks @oxidase

@safe-bug
Copy link
Author

@oxidase Sorry if I'm asking too much questions, but I'm experiencing some weird behaviors in applying conditional restrictions. It appears that the conditionals doesn't change status (applicable/not applicable according to the time restriction) unless running the MLD pipeline again. I mean there's something wrong with the clock/time of the OSRM although I've set the timezone and the timestamp correctly.
Do you have any idea what is the problem?

@safe-bug safe-bug reopened this Feb 17, 2018
@oxidase
Copy link
Contributor

oxidase commented Feb 17, 2018

@behizz to update conditional restrictions in a road graph you have to re-run osrm-contract or osrm-customize with --parse-conditionals-from-now <new UTC timestamp> --time-zone-file tz.json arguments and reload the updated graph in OSRM engine. You also can check if tzdata package is installed:

TZ=America/New_York date -d @1500000000 "+%Y%m%d %H%M"

must return 20170713 2240. tzdata package is required for conversion of UTC timestamps into conditional restrictions local time.

@safe-bug
Copy link
Author

safe-bug commented Mar 9, 2018

@oxidase I'm doing just the same things that you said, the timezone is OK but it's not working until I start from extract, partition, ... . It's working for a small osm file but for a large one it's not.
what else should I check?

@safe-bug safe-bug closed this as completed Apr 4, 2018
@slavanap
Copy link
Contributor

@oxidase Could you please list all set of OSRM commands to enable conditional restrictions checks? How to get tz.json from tzdata file? How to use http://efele.net/maps/tz/world/tz_world.zip ?
Imho, there's not enough information here to start for people who are not familiar with the subject
https://github.com/Project-OSRM/osrm-backend/wiki/Check-conditional-restrictions

Right now I'm using

osrm-extract --parse-conditional-restrictions -p /opt/car.lua /data/map.osm.bz2
osrm-partition /data/map.osm
osrm-customize /data/map.osm

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