Improve maps_generator README. #4404

Merged
hallahan merged 3 commits from maps_generator_readme into master 2023-02-07 21:18:49 +00:00
hallahan commented 2023-02-05 19:57:12 +00:00 (Migrated from github.com)

I tweaked some of the English wording in this doc. My intent is to make this a bit easier to understand to a newcomer that wants to generate some .mwm files themselves.

cc/ @endim8 @biodranik

Inspired by:
organicmaps/organicmaps#4392

Related issues:
organicmaps/organicmaps#4405
organicmaps/organicmaps#4406

I tweaked some of the English wording in this doc. My intent is to make this a bit easier to understand to a newcomer that wants to generate some .mwm files themselves. cc/ @endim8 @biodranik Inspired by: https://git.omaps.dev/organicmaps/organicmaps/issues/4392 Related issues: https://git.omaps.dev/organicmaps/organicmaps/issues/4405 https://git.omaps.dev/organicmaps/organicmaps/issues/4406
biodranik (Migrated from github.com) requested changes 2023-02-06 09:24:42 +00:00
biodranik (Migrated from github.com) commented 2023-02-06 09:13:38 +00:00

You don't need the desktop app for the generator.

You don't need the desktop app for the generator.
biodranik (Migrated from github.com) commented 2023-02-06 09:15:26 +00:00

Why 1. ?

Did you preview it? Was the markdown with numbered items rendered correctly?

Why 1. ? Did you preview it? Was the markdown with numbered items rendered correctly?
biodranik (Migrated from github.com) commented 2023-02-06 09:16:56 +00:00
Here is a sample ini that will download an OSM PBF file for the Yukon Territories, Canada from [GEOFABRIK](https://www.geofabrik.de/). You can replace the *osm.pbf* and *osm.pbf.md5* with other areas instead. Note that an entire planet file currently takes 40+ hours on a server with 256GB of RAM. Unless you have a machine this large, it is recommended to use a smaller extract.
```suggestion Here is a sample ini that will download an OSM PBF file for the Yukon Territories, Canada from [GEOFABRIK](https://www.geofabrik.de/). You can replace the *osm.pbf* and *osm.pbf.md5* with other areas instead. Note that an entire planet file currently takes 40+ hours on a server with 256GB of RAM. Unless you have a machine this large, it is recommended to use a smaller extract. ```
@ -63,17 +68,15 @@ MAIN_OUT_PATH: ~/maps_build
biodranik (Migrated from github.com) commented 2023-02-06 09:17:46 +00:00
# The path to the data folder in the repository.
```suggestion # The path to the data folder in the repository. ```
@ -124,26 +139,34 @@ SUBWAY_URL: https://cdn.organicmaps.app/subway.json
# UK_POSTCODES_URL:
biodranik (Migrated from github.com) commented 2023-02-06 09:19:55 +00:00
python$ python -m maps_generator -h
```suggestion python$ python -m maps_generator -h ```
@ -195,22 +218,19 @@ optional arguments:
--order ORDER Mwm generation order.
biodranik (Migrated from github.com) commented 2023-02-06 09:20:14 +00:00
If you are not from the Organic Maps team, then you do not need the option --production when generating maps.
```suggestion If you are not from the Organic Maps team, then you do not need the option --production when generating maps. ```
biodranik (Migrated from github.com) commented 2023-02-06 09:21:51 +00:00

It is only needed in the case of building some regions. If the whole planet is built, then these files will be generated/used directly.

It is only needed in the case of building some regions. If the whole planet is built, then these files will be generated/used directly.
biodranik (Migrated from github.com) commented 2023-02-06 09:22:41 +00:00
python$ python -m maps_generator -c --from_stage="Routing" --countries="Japan_Kinki Region_Osaka_Osaka, Japan_Chugoku Region_Tottori"

Please check if there are other 3.6 hardcoded versions somewhere.

```suggestion python$ python -m maps_generator -c --from_stage="Routing" --countries="Japan_Kinki Region_Osaka_Osaka, Japan_Chugoku Region_Tottori" ``` Please check if there are other 3.6 hardcoded versions somewhere.
@ -272,12 +294,12 @@ PLANET_MD5_URL: https://download.geofabrik.de/russia/central-fed-district-latest
3. Run
biodranik (Migrated from github.com) commented 2023-02-06 09:23:18 +00:00
python$ python -m maps_generator --countries="Japan_Chugoku Region_Tottori" --skip="Coastline"
```suggestion python$ python -m maps_generator --countries="Japan_Chugoku Region_Tottori" --skip="Coastline" ```
hallahan (Migrated from github.com) reviewed 2023-02-06 16:50:03 +00:00
hallahan (Migrated from github.com) commented 2023-02-06 16:50:03 +00:00

Whoops, fixing.

Whoops, fixing.
hallahan (Migrated from github.com) reviewed 2023-02-06 16:58:15 +00:00
hallahan (Migrated from github.com) commented 2023-02-06 16:58:15 +00:00

Are you saying that this part of the config can be left blank in a planet build? For this example, we are doing all of Japan.

I have found that the generator fails if I include World and WorldCoasts, at least for the Yukon. So aren't the geom files always required?

Are you saying that this part of the config can be left blank in a planet build? For this example, we are doing all of Japan. I have found that the generator fails if I include World and WorldCoasts, at least for the Yukon. So aren't the geom files always required?
biodranik (Migrated from github.com) reviewed 2023-02-07 00:03:05 +00:00
biodranik (Migrated from github.com) commented 2023-02-07 00:03:05 +00:00

You don't need to download these files if the whole planet is built. They are generated in the process of building the whole planet.

You don't need to download these files if the whole planet is built. They are generated in the process of building the whole planet.
biodranik (Migrated from github.com) approved these changes 2023-02-07 21:18:35 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#4404
No description provided.