Skip to content

Install osm2map manually

NoteFx edited this page Aug 21, 2020 · 1 revision

since there have been many instances of people, not being able to install osmosis and the mapsforgs map writer plug-in over the dedicated script, I've just de constructed the script here so it can just be copy pasted into the terminal.

(this script was originally made by Tom Morelly in 2019 and updated in 2020)

Please remember to run in sudo

  1. installing and setting up osmosis
    cd /opt
    wget https://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.47.tgz
    mkdir -p osmosis
    mv osmosis-0.47.tgz osmosis
    cd osmosis
    tar xvfz osmosis-0.47.tgz
    rm osmosis-0.47.tgz
    chmod a+x bin/osmosis\

  2. installing mapwriter plugin
    cd /opt/osmosis/lib/default
    curl -L -O https://search.maven.org/remotecontent?filepath=org/mapsforge/mapsforge-map-writer/0.9.1/mapsforge-map-writer-0.9.1-jar-with-dependencies.jar\

to use the mapwriter plugin: /opt/osmosis/bin/osmosis --rx file=path-to-osm-file.osm --mw file=destination-path-map-file.map

Clone this wiki locally