Do not generate intermediate .osrm file in osrm-extract. (#6354)
This commit is contained in:
committed by
GitHub
parent
395cc6e9df
commit
21888334dd
@@ -39,12 +39,8 @@ std::size_t loadGraph(const std::string &path,
|
||||
std::vector<TarjanEdge> &graph_edge_list)
|
||||
{
|
||||
std::vector<extractor::NodeBasedEdge> edge_list;
|
||||
std::vector<extractor::NodeBasedEdgeAnnotation> annotation_data;
|
||||
|
||||
auto nop = boost::make_function_output_iterator([](auto) {});
|
||||
|
||||
extractor::files::readRawNBGraph(
|
||||
path, nop, coordinate_list, osm_node_ids, edge_list, annotation_data);
|
||||
extractor::files::readRawNBGraph(path, coordinate_list, osm_node_ids, edge_list);
|
||||
|
||||
// Building a node-based graph
|
||||
for (const auto &input_edge : edge_list)
|
||||
|
||||
@@ -77,7 +77,7 @@ return_code parseArguments(int argc,
|
||||
hidden_options.add_options()(
|
||||
"input,i",
|
||||
boost::program_options::value<boost::filesystem::path>(&customization_config.base_path),
|
||||
"Input file in .osrm format");
|
||||
"Input base file path");
|
||||
|
||||
// positional option
|
||||
boost::program_options::positional_options_description positional_options;
|
||||
|
||||
@@ -74,7 +74,12 @@ return_code parseArguments(int argc,
|
||||
boost::program_options::bool_switch(&extractor_config.use_locations_cache)
|
||||
->implicit_value(false)
|
||||
->default_value(true),
|
||||
"Use internal nodes locations cache for location-dependent data lookups");
|
||||
"Use internal nodes locations cache for location-dependent data lookups")(
|
||||
"dump-nbg-graph",
|
||||
boost::program_options::bool_switch(&extractor_config.dump_nbg_graph)
|
||||
->implicit_value(true)
|
||||
->default_value(false),
|
||||
"Dump raw node-based graph to *.osrm file for debug purposes.");
|
||||
|
||||
bool dummy;
|
||||
// hidden options, will be allowed on command line, but will not be
|
||||
|
||||
@@ -119,7 +119,7 @@ return_code parseArguments(int argc,
|
||||
hidden_options.add_options()(
|
||||
"input,i",
|
||||
boost::program_options::value<boost::filesystem::path>(&config.base_path),
|
||||
"Input file in .osrm format");
|
||||
"Input base file path");
|
||||
|
||||
// positional option
|
||||
boost::program_options::positional_options_description positional_options;
|
||||
|
||||
Reference in New Issue
Block a user