Skip to content

Commit

Permalink
[generator] [python] Enabled generation of the FeatureId <-> OsmId ma…
Browse files Browse the repository at this point in the history
…pping for World.mwm.

(The previous commit was merged prematurely.)
  • Loading branch information
mpimenov authored and maksimandrianov committed Jul 16, 2019
1 parent 0936760 commit 9dd7856
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tools/python/maps_generator/generator/stages.py
Expand Up @@ -125,10 +125,23 @@ def stage_index_world(env, country, **kwargs):
generate_search_index=True,
cities_boundaries_data=env.cities_boundaries_path,
generate_cities_boundaries=True,
generate_cities_ids=True,
**kwargs)


def stage_cities_ids_world(env, country, **kwargs):
run_gen_tool_with_recovery_country(
env,
env.gen_tool,
out=env.get_subprocess_out(country),
err=env.get_subprocess_out(country),
data_path=env.mwm_path,
user_resource_path=env.user_resource_path,
output=country,
generate_cities_ids=True,
**kwargs
)


def stage_index(env, country, **kwargs):
_generate_common_index(env, country,
generate_search_index=True,
Expand Down
6 changes: 6 additions & 0 deletions tools/python/maps_generator/maps_generator.py
Expand Up @@ -123,6 +123,11 @@ def stage_index(env, country, **kwargs):
stages.stage_index(env, country, **kwargs)


@country_stage
def stage_cities_ids_world(env, country, **kwargs):
stages.stage_cities_ids_world(env, country, **kwargs)


@country_stage
def stage_ugc(env, country, **kwargs):
stages.stage_ugc(env, country, **kwargs)
Expand Down Expand Up @@ -161,6 +166,7 @@ def build(country):

def build_world(country):
stage_index(env, country)
stage_cities_ids_world(env, country)
env.finish_mwm(country)

def build_world_coasts(country):
Expand Down

0 comments on commit 9dd7856

Please sign in to comment.