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
2016-01-12 17:20:07 -05:00
bin/osmosis Added CLI tools used for processing 2016-01-12 14:12:45 -05:00
lists Added test map list, implemented map processing including combining into single output map file 2016-01-12 16:17:06 -05:00
.gitignore Added on-disk processing of maps due to in-memory being "too big" for "large" map processing 2016-01-12 17:20:07 -05:00
process_maps.py Added on-disk processing of maps due to in-memory being "too big" for "large" map processing 2016-01-12 17:20:07 -05:00
README.md Added notes that were used to create the tool 2016-01-12 14:12:34 -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