Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlga Khlopkova <o.khlopkova@corp.mail.ru>2020-11-26 16:12:44 +0300
committerMaksim Andrianov <maksimandrianov1@gmail.com>2020-11-26 16:23:24 +0300
commitb30158954173ecae7daf38a3ca1163fac2330464 (patch)
tree39b58314385d8041de87903208bb7308a57a07bf /generator
parentdd63c0943091cfab550bf24b84e8544ad99bc6fa (diff)
[generator] Use RoutingWorldGenerator in generator_tool.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_tool/generator_tool.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/generator/generator_tool/generator_tool.cpp b/generator/generator_tool/generator_tool.cpp
index 4394466ea7..40b335dc89 100644
--- a/generator/generator_tool/generator_tool.cpp
+++ b/generator/generator_tool/generator_tool.cpp
@@ -25,6 +25,7 @@
#include "generator/restriction_generator.hpp"
#include "generator/road_access_generator.hpp"
#include "generator/routing_index_generator.hpp"
+#include "generator/routing_world_roads_generator.hpp"
#include "generator/search_index_builder.hpp"
#include "generator/statistics.hpp"
#include "generator/traffic_generator.hpp"
@@ -150,6 +151,10 @@ DEFINE_bool(disable_cross_mwm_progress, false,
DEFINE_string(srtm_path, "",
"Path to srtm directory. If set, generates a section with altitude information "
"about roads.");
+DEFINE_string(worldroads_path, "",
+ "Path to a file with roads that should end up on the world map. If set, generates a "
+ "section with these roads in World.mwm. The roads may be used to identify which mwm "
+ "files are touched by an arbitrary route.");
DEFINE_string(transit_path, "", "Path to directory with transit graphs in json.");
DEFINE_string(transit_path_experimental, "",
"Experimental parameter. If set the new version of transit section will be "
@@ -486,6 +491,16 @@ MAIN_WITH_ERROR_HANDLING([](int argc, char ** argv)
}
}
+ if (country == WORLD_FILE_NAME && !FLAGS_worldroads_path.empty())
+ {
+ LOG(LINFO, ("Generating routing section for World."));
+ if (!routing::BuildWorldRoads(dataFile, FLAGS_worldroads_path))
+ {
+ LOG(LCRITICAL, ("Generating routing section for World has failed."));
+ return EXIT_FAILURE;
+ }
+ }
+
if (FLAGS_make_routing_index)
{
if (!countryParentGetter)