---+ Create custom !OpenFietsMap * Create a directory for the openfietsmap files: mkdir openfietsmap * Go into this directory: cd openfietsmap * Clone the mkgmap style sheets repository: git clone https://github.com/ligfietser/mkgmap-style-sheets.git * Copy the mkgmap style sheets to the current directory: cp -r "mkgmap-style-sheets/styles/Openfietsmap full"/* . * Create a directory Styles * Copy the Openfietmap Full style directory to Styles: cp -r "mkgmap-style-sheets/styles/Openfietsmap full"/* Styles/ * Copy the file 20011.txt from the Openfietsmap lite directory: cp "mkgmap-style-sheets/typ/Openfietsmap lite"/20011.txt . * Download the file cities15000.txt from: http://download.geonames.org/export/dump/cities15000.zip (unzip to get .txt) * Download splitter from: https://www.mkgmap.org.uk/download/splitter.html ([[%ATTACHURL%/splitter-r653.zip][splitter-r653.zip]]) * Download mkgmap from: https://www.mkgmap.org.uk/download/mkgmap.html ([[%ATTACHURL%/mkgmap-r4916.zip][mkgmap-r4916.zip]]) * Download sea-latest.zip from https://www.thkukuk.de/osm/data/sea-latest.zip and rename to sea.zip * Download bounds-latest.zip from https://www.thkukuk.de/osm/data/bounds-latest.zip and rename to bounds.zip * Extract splitter and mkgmap using unzip * Create a directory DEM: mkdir DEM * Go to https://geo.javawa.nl/srtm/index.php, select the region you are using and download each file listed on the right (use the lowest resolution available) * Extract and move the contents of all height maps to the DEM directory * Edit mkgmap.args and replace map_with_dem_files with DEM * Create bounding box using: https://boundingbox.klokantech.com/ * Draw polygon around desired area. Select KML in the lower left corner and click the copy to clipboard icon * Paste the KML data into a new file (it is not actually in KML format). Edit the ploygon file to list coordinates 1 per line, start each line with 2 spaces, replace comma (,) with 2 spaces * Add header: * beneluxswgermany * 1 * Add footer: * END * END * Save the file as beneluxswgermany.poly (See [[%ATTACHURL%/beneluxswgermany.poly][beneluxswgermany.poly]]) * Download .osm.bpf file from http://download.geofabrik.de/europe.html * http://download.geofabrik.de/europe-latest.osm.pbf * Split Europe files in pieces and limit to polygon: * java -Xms4096m -Xmx4096m -jar <path/to/splitter.jar> --output=pbf --output-dir=splitter --max-nodes=1400000 --mapid=10010001 --geonames-file=cities15000.txt --polygon-file=beneluxswgermany.poly europe-latest.osm.pbf * Create image file for installing on Garmin: * java -Xms4096m -Xmx4096m -jar <path/to/mkgmap.jar> --gmapsupp -c mkgmap.args -c splitter/template.args 20011.txt ---+ See also * https://www.openfietsmap.nl/tips-tricks/procedure -- %USERSIG{IvoVanGeel - 20 Jul 2022}%
This topic: Main
>
WebHome
>
CreateCustomOpenFietsMap
Topic revision: r7 - 22 Oct 2023 - IvoVanGeel
Copyright © 2010-2019 by LANIS