Implements #822 (partially)
This commit is contained in:
parent
ba6641ed9a
commit
fdfe0ce63d
@ -238,6 +238,8 @@ inline bool GenerateServerProgramOptions(
|
|||||||
!boost::filesystem::is_regular_file(path_iterator->second)
|
!boost::filesystem::is_regular_file(path_iterator->second)
|
||||||
) {
|
) {
|
||||||
path_iterator->second = base_string + ".hsgr";
|
path_iterator->second = base_string + ".hsgr";
|
||||||
|
} else {
|
||||||
|
throw OSRMException(base_string + ".hsgr not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
path_iterator = paths.find("nodesdata");
|
path_iterator = paths.find("nodesdata");
|
||||||
@ -246,38 +248,52 @@ inline bool GenerateServerProgramOptions(
|
|||||||
!boost::filesystem::is_regular_file(path_iterator->second)
|
!boost::filesystem::is_regular_file(path_iterator->second)
|
||||||
) {
|
) {
|
||||||
path_iterator->second = base_string + ".nodes";
|
path_iterator->second = base_string + ".nodes";
|
||||||
|
} else {
|
||||||
|
throw OSRMException(base_string + ".nodes not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
path_iterator = paths.find("edgesdata");
|
path_iterator = paths.find("edgesdata");
|
||||||
if(
|
if(
|
||||||
path_iterator != paths.end() &&
|
path_iterator != paths.end() &&
|
||||||
!boost::filesystem::is_regular_file(path_iterator->second)
|
!boost::filesystem::is_regular_file(path_iterator->second)
|
||||||
) {
|
) {
|
||||||
path_iterator->second = base_string + ".edges";
|
path_iterator->second = base_string + ".edges";
|
||||||
|
} else {
|
||||||
|
throw OSRMException(base_string + ".edges not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
path_iterator = paths.find("ramindex");
|
path_iterator = paths.find("ramindex");
|
||||||
if(
|
if(
|
||||||
path_iterator != paths.end() &&
|
path_iterator != paths.end() &&
|
||||||
!boost::filesystem::is_regular_file(path_iterator->second)
|
!boost::filesystem::is_regular_file(path_iterator->second)
|
||||||
) {
|
) {
|
||||||
path_iterator->second = base_string + ".ramIndex";
|
path_iterator->second = base_string + ".ramIndex";
|
||||||
|
} else {
|
||||||
|
throw OSRMException(base_string + ".ramIndex not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
path_iterator = paths.find("fileindex");
|
path_iterator = paths.find("fileindex");
|
||||||
if(
|
if(
|
||||||
path_iterator != paths.end() &&
|
path_iterator != paths.end() &&
|
||||||
!boost::filesystem::is_regular_file(path_iterator->second)
|
!boost::filesystem::is_regular_file(path_iterator->second)
|
||||||
) {
|
) {
|
||||||
path_iterator->second = base_string + ".fileIndex";
|
path_iterator->second = base_string + ".fileIndex";
|
||||||
|
} else {
|
||||||
|
throw OSRMException(base_string + ".fileIndex not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
path_iterator = paths.find("namesdata");
|
path_iterator = paths.find("namesdata");
|
||||||
if(
|
if(
|
||||||
path_iterator != paths.end() &&
|
path_iterator != paths.end() &&
|
||||||
!boost::filesystem::is_regular_file(path_iterator->second)
|
!boost::filesystem::is_regular_file(path_iterator->second)
|
||||||
) {
|
) {
|
||||||
path_iterator->second = base_string + ".names";
|
path_iterator->second = base_string + ".names";
|
||||||
|
} else {
|
||||||
|
throw OSRMException(base_string + ".namesIndex not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
path_iterator = paths.find("timestamp");
|
path_iterator = paths.find("timestamp");
|
||||||
|
Loading…
Reference in New Issue
Block a user