-
Notifications
You must be signed in to change notification settings - Fork 684
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
update timezone database #4446
update timezone database #4446
Conversation
dbe14b9
to
e18463d
Compare
e18463d
to
465c220
Compare
@@ -1,433 +0,0 @@ | |||
"ID","STD ABBR","STD NAME","DST ABBR","DST NAME","GMT offset","DST adjustment","DST Start Date rule","Start time","DST End date rule","End time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like this was for boost::date_time which was long abandoned
src/baldr/CMakeLists.txt
Outdated
WORKING_DIRECTORY ${VALHALLA_SOURCE_DIR} | ||
COMMENT "Compiling date_time/windowsZones.xml to date_time_windows_zones.h" | ||
DEPENDS ${VALHALLA_SOURCE_DIR}/date_time/windowsZones.xml) | ||
|
||
file(GLOB headers ${VALHALLA_SOURCE_DIR}/valhalla/baldr/*.h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huch, this was definitely not intended..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry @gknisely that dismissed your review
scripts/valhalla_build_timezones
Outdated
|
||
echo "downloading timezone polygon file." 1>&2 | ||
curl -L -s -o ./timezones-with-oceans.shapefile.zip ${url} || error_exit "curl failed for ${url}" | ||
unzip ./timezones-with-oceans.shapefile.zip 1>&2 || error_exit "unzip failed" | ||
|
||
tz_file=$(mktemp) | ||
spatialite_tool -i -shp ./dist/combined-shapefile-with-oceans -d ${tz_file} -t tz_world -s 4326 -g geom -c UTF-8 1>&2 || error_exit "spatialite_tool import failed" | ||
spatialite_tool -i -shp "./combined-shapefile-with-oceans" -d "${tz_file}" -t tz_world -s 4326 -g geom -c UTF-8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove the error checking, surely its still possible something goes wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh, just a fail, will add again
src/mjolnir/admin.cc
Outdated
@@ -24,6 +24,7 @@ sqlite3* GetDBHandle(const std::string& database) { | |||
sqlite3_close(db_handle); | |||
return nullptr; | |||
} | |||
// sqlite3_extended_result_codes(db_handle, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, let me uncomment. it will give better error codes/msgs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, two tiny quesitons though i do think we should error check in the script
35a0069
fixed the small comments: 35a0069 |
fixes #3817
date_time
folder (except windowsZones.xml) and submodules the tz repo, which needed a bit of CMake stuff to make it work; now we know the version of the IANA data as wellAlso we could use the OS timezone DBs now. I left the windowsZones.xml in here as well.
Other than that, the code itself is pretty well documented.