Docker containers for generating Maps.me maps
Container for converting pbf and other formats into mwm file format (special format for Maps.me)
You can take built container here https://hub.docker.com/r/ckesc/omim-convert2mwm/
- Build whole maps.me repo
- Call tool
omim/tools/unix/generate_mwm.sh
- Download pbf file from somewhere. For example http://gis-lab.info
- Rename it like maps.me official map file. For example
Russia_Moscow.osm.pbf
- Place your pbf file in current directory.
- Run
docker run --rm -u $(id -u):$(id -g) -v $PWD:/srv/data ckesc/omim-convert2mwm:release-76 Russia_Moscow.osm.pbf
Replace release-76
with actual branch (tag in docker terminology)
Replace Russia_Moscow.osm.pbf
with your pbf file. File should be in current directory. Absolute path won't work here.
After ~hour you got ready to use mwm file.
In current directory will be created temporary files.
You can place result files into your phone instead of current map file. See how
- Routing between 2 maps won't work if your pbf borders doesn't match borders in /~https://github.com/mapsme/omim/tree/master/data/borders
Container for automative build of maps.me maps.
- Only on first run: Downloads whole Russia pbf file from https://gis-lab.info (~ 2.2 Gb)
- Only on first run: Crops regions into separate small pbf files with data from
data/borders
- Downloaded pbf always in past. So script updates it with pach via
osmupdate
- Calls
generate_mwm.sh
(like inconvert2mwm
) to convert maps
- Make
data/borders
dir. Download some border files from /~https://github.com/mapsme/omim/tree/master/data/borders - Make sure that you have > 3 Gb free space. Russia file now have size 2.2 Gb + generated files take some place.
- Run
docker run -v /opt/teamcity_agent_osm/data:/srv/data/ ckesc/omim-make-maps:release-76
Replace release-76
with actual branch (tag in docker terminology)
You can read official documentation here
Tips:
- File name should match current map file. For example
Russia_Moscow
instead of justMoscow
- You should place file into
/sdcard/Mapswithme/17xxxx
where17xxxx
is date of current official maps.