This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2017-01-20 12:29:54 -05:00
bin/osmosis Bump mapsforge writer plugin versions 2017-01-20 12:06:37 -05:00
lists Added Michigan only map 2016-08-28 12:18:31 -04:00
.gitignore Tweak gitignore for tmp folder 2017-01-20 12:06:51 -05:00
LICENSE-APACHE-2.0.txt Added licencing 2016-01-12 17:51:36 -05:00
LICENSE-CC-BY-SA-3.0.html Added licencing 2016-01-12 17:51:36 -05:00
poi-mapping.xml Bump mapsforge writer version, prep for mapsforge POI output 2016-08-28 13:07:03 -04:00
process_maps.py Misc updates/fixes (see below) - Added -server to JVM options to help increase performance during long-running creations (per osmosis perf tuning) - Improved command help text and usage info - Adjusted how wget/bunzip2 are found (improves reliability in finding them) - Added option to NOT sleep between downloads (use this at your own risk, mirrors WILL throttle generally) - Added option to use RAM instead of HD for processing (mapsforge eats RAM, be careful with this) 2017-01-20 12:29:54 -05:00
README.md Added licencing 2016-01-12 17:51:36 -05:00

Overview

This project contains useful info/tools for processing OSM maps into the mapwriter file format (.map)

Manual Procedure

Prep

Process maps for device

  • Setup osmosis in a directory (unzip release -- ZIPBOMB ALERT!!!!)
  • Create plugins directory under osmosis
  • Move mapsforge release jar to osmosis/lib/default/
  • Decompress maps (if they were previously compressed)
  • ./osmosis bin/osmosis --rb file=../maps/a_map.osm.pbf --mapfile-writer file=../maps/a_map.map -* If you run out of heap space add JAVACMD_OPTIONS="-Xmx16g" to the start of the line -* If increasing the heap doesn't work, append type=hd to end of command -* You can merge maps using --merge passed to osmosis (before --mapfile-writer) using n-1 instances of --merge where n is the number of --rb or --rx options passed

General Notes

Used to generate above info

Licencing

All code is licensed Apache 2.0 and all non-code is licensed Creative Commons CC-BY-SA-3.0