GithubHelp home page GithubHelp logo

mapsme_map_gen_container's Introduction

Docker containers for generating Maps.me maps

convert2mwm

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/

What container do:

  1. Build whole maps.me repo
  2. Call tool omim/tools/unix/generate_mwm.sh

How to use

  1. Download pbf file from somewhere. For example http://gis-lab.info
  2. Rename it like maps.me official map file. For example Russia_Moscow.osm.pbf
  3. Place your pbf file in current directory.
  4. 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

Note:

make_maps

Container for automative build of maps.me maps.

What container do:

  1. Only on first run: Downloads whole Russia pbf file from https://gis-lab.info (~ 2.2 Gb)
  2. Only on first run: Crops regions into separate small pbf files with data from data/borders
  3. Downloaded pbf always in past. So script updates it with pach via osmupdate
  4. Calls generate_mwm.sh (like in convert2mwm) to convert maps

How to use:

  1. Make data/borders dir. Download some border files from https://github.com/mapsme/omim/tree/master/data/borders
  2. Make sure that you have > 3 Gb free space. Russia file now have size 2.2 Gb + generated files take some place.
  3. 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)

How to upload mwm to device

You can read official documentation here

Tips:

  • File name should match current map file. For example Russia_Moscow instead of just Moscow
  • You should place file into /sdcard/Mapswithme/17xxxx where 17xxxx is date of current official maps.

mapsme_map_gen_container's People

Contributors

ckesc avatar

Stargazers

Hiroshi Miura avatar Ilya Zverev avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

mapsme_map_gen_container's Issues

The mwm file not working properly

I was trying to convert my .pbf.osm file to .mwm file for using in maps.me. For this purpose i was using docker after pulling the whole image having master tag using (docker pull ckesc/omim-convert2mwm:master) this command i got the image in my docker then for converting my .pbf.osm file to .mwm file i was using the command (docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/srv/data ckesc/omim-convert2mwm:master Pakistan.osm.pbf) but i am getting this error

{id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:22
+ docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/srv/data ckesc/omim-c ...
+                      ~~
    + CategoryInfo          : ObjectNotFound: (id:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:31
+ docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/srv/data ckesc/omim-c ...
+                               ~~
    + CategoryInfo          : ObjectNotFound: (id:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException} but after giving this error the command start working properly but after making .mwm file after some processing the tool just stuck at (3299.2 generator/search_index_builder.cpp:417 BuildSearchIndexFromDataFile() Search index size = 69164380) and nothing happen after this. But when i tried to use the .mwm file that was created in my folder it work in maps.me but as i tried searching for a place the application crashes every time i tried to do so the application crashes. Kindly help me i am new to this.
    ```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.