From a2f0a23fa94c6e41c395614387641c5b60de9b4e Mon Sep 17 00:00:00 2001 From: Maksim Andrianov Date: Wed, 26 Jun 2019 13:35:01 +0300 Subject: [PATCH] [generator][python] Added example to README. --- tools/python/maps_generator/README.md | 30 ++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/tools/python/maps_generator/README.md b/tools/python/maps_generator/README.md index 73150e5918..1150508d80 100644 --- a/tools/python/maps_generator/README.md +++ b/tools/python/maps_generator/README.md @@ -152,7 +152,7 @@ You can override this behavior with the option --order=/path/to/mwm_generation_o You can calculate this list yourself from the statistics, which is calculated with each generation. ### Examples -#### Non-standard planet +#### Non-standard planet with coastlines If you want to generate maps for Japan you must complete the following steps: 1. Open https://download.geofabrik.de/asia/japan.html and copy url of osm.pbf and md5sum files. 2. Edit ini file: @@ -174,7 +174,6 @@ PLANET_MD5_URL: https://download.geofabrik.de/asia/japan-latest.osm.pbf.md5 3. Run ```sh python$ python3.6 -m maps_generator --countries="World, WorldCoasts, Japan_*" --skip="update_planet" - ``` You must skip the step of updating the planet, because it is a non-standard planet. #### Rebuild stages: @@ -183,5 +182,30 @@ You must have previous generation. You may regenerate from stage routing only fo ```sh python$ python3.6 -m maps_generator -c --from_stage="routing" --countries="Japan_Kinki Region_Osaka_Osaka, Japan_Chugoku Region_Tottori" +``` +##### Note: To generate maps with the coastline, you need more time and you need the original piece of the map to contain a continuous coastline. -``` \ No newline at end of file +#### Non-standard planet without coastlines +If you want to generate maps for Moscow you must complete the following steps: +1. Open https://download.geofabrik.de/russia/central-fed-district.html and copy url of osm.pbf and md5sum files. +2. Edit ini file: +```sh +maps_generator$ vim var/etc/map_generator.ini +``` + +```ini +[Main] +... +DEBUG: 0 +... +[External] +PLANET_URL: https://download.geofabrik.de/russia/central-fed-district-latest.osm.pbf +PLANET_MD5_URL: https://download.geofabrik.de/russia/central-fed-district-latest.osm.pbf.md5 +... +``` + +3. Run +```sh +python$ python3.6 -m maps_generator --countries="Russia_Moscow" --skip="update_planet, coastline" +``` +You must skip the step of updating the planet, because it is a non-standard planet \ No newline at end of file