andygates: (Default)
[personal profile] andygates
Anger is an energy: I had such a rotten day that I dove into this all evening and have a nice toolchain (with Majel Barrett sound effects) for making the awesomeness that is OSM routable.  The routable functionality (that's where the GPS can follow roads instead of striking out as the crow flies) is pretty new and beta for OSM, and I'm dead chuffed to have got this working.  The UK & Ireland Routable Topo map file will be available from ravenfamily.org/andyg/maps from midnight-thirty.

Method:

1: Get the country.osm files from Geofabrik.

2: Use the tile splitter to cut England into manageable chunks: 
java -Xmx500m -jar splitter.jar --max-nodes=1000000 ..\data\osm\england.osm

3: Use osm2mp (v065, requires Perl and the Template-toolkit plugin) to convert the .osm files into .mp files.  No switches for this:
perl osm2mp.pl ..\data\osm\scotland.osm > ..\data\mp\scotland.mp

4: Use mkgmap to make the Garmin .img files.  Tricks here are to use the latest (v924), and to include the -enableassertions flag in the right place - before the mkgmap.jar (it's a flag on the java, not the mapmaker - tip of the hat to tkatzir for cluing me into that):
java -jar -Xmx512m -enableassertions mkgmap.jar --route --latin1 ..\data\mp\map1.mp ..\data\mp\map2.mp ..\data\mp\map3.mp

For my clockwork laptop, the splitting takes 30 minutes and the making takes 10 minutes.  We end up with 5 tiles and an overview tile, which can then be fed into Sendmap and built into a GMAPSUPP.IMG in the usual way.

Profile

andygates: (Default)
andygates

April 2017

S M T W T F S
      1
2345678
9 101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 5th, 2025 11:38 am
Powered by Dreamwidth Studios