mapsme / omim

🗺️ MAPS.ME — Offline OpenStreetMap maps for iOS and Android
Apache License 2.0
4.56k stars 1.15k forks source link

--without_countries option not working #12106

Open dew54 opened 4 years ago

dew54 commented 4 years ago

Hi, i've found a new feature in the maps_generator, as is written here I've tried that interesting option but the program stucks at this point:

`[2019-11-24 16:37:43,937] INFO decorators Stage download and convert planet: finished in 0:00:09.106012 [2019-11-24 16:37:43,943] INFO decorators Stage update planet was not accepted. [2019-11-24 16:37:43,945] INFO decorators Stage coastline was not accepted. [2019-11-24 16:37:43,949] INFO decorators Stage preprocess: start ... [2019-11-24 16:37:44,472] INFO gen_tool Run generator tool [generator_tool version 1574434427 c52ab9a34e8d9c098d8276cfa185d524e63d7a1e]: /Users/davidevidmar/omim-build-release/generator_tool --intermediate_data_path=/Users/davidevidmar/maps_build/2019_11_2416_37_29/intermediate_data --osm_file_type=o5m --osm_file_name=/Users/davidevidmar/maps_build/planet.o5m --node_storage=map --user_resource_path=/Users/davidevidmar/omim/data --preprocess=true [2019-11-24 16:38:24,470] INFO decorators Stage preprocess: finished in 0:00:40.520306 [2019-11-24 16:38:24,472] INFO decorators Stage features: start ... [2019-11-24 16:38:24,520] INFO gen_tool Run generator tool [generator_tool version 1574434427 c52ab9a34e8d9c098d8276cfa185d524e63d7a1e]: /Users/davidevidmar/omim-build-release/generator_tool --data_path=/Users/davidevidmar/maps_build/2019_11_2416_37_29/intermediate_data --intermediate_data_path=/Users/davidevidmar/maps_build/2019_11_2416_37_29/intermediate_data --osm_file_type=o5m --osm_file_name=/Users/davidevidmar/maps_build/planet.o5m --node_storage=map --user_resource_path=/Users/davidevidmar/omim/data --dump_cities_boundaries=true --cities_boundaries_data=/Users/davidevidmar/maps_build/2019_11_2416_37_29/intermediate_data/cities_boundaries.bin --generate_features=true --generate_packed_borders=true

`

I've used the python3.6 -m maps_generator --skip="coastline" --without_countries="World*" command. Is there something wrong? Thx, Davide

gmoryes commented 4 years ago

Hello, we have ~1140 maps (which called mwms) and 2 special mwms - World.mwm (mwm of all world, you can see it when tap several times to zoom out in MAPS.ME) and WorldCoast.mwm (mwm with coasts data). So, this line builds all ~1140 mwms without World.mwm and WorldCoast.mwm python3.6 -m maps_generator --skip="coastline" --without_countries="World*" And as I can see, you run it on mac. The building of all mwms is long process, which takes ~3-4 days on our high-performance server. You need ~100GB of RAM, ~600GB HDD, and the more cores you have, the faster building will be :)

So you need to specify which mwms you want to build, for example: python3.6 -m maps_generator --skip="coastline" --without_countries="World*" --countries="France_*" You can see the full list of name here: https://github.com/mapsme/omim/tree/master/data/borders Each *poly file represents one mwm with the same name