Osmcut

From OpenStreetMap Wiki
Jump to: navigation, search

There are at least two programs called osmcut for cutting up .osm-files into smaller parts.

saved from mkgmap

$ svn co http://svn.openstreetmap.org/applications/utils/osm-extract/osmcut/
$ cd osmcut
$ make
$ cd ..

(To compile osmcut on my Ubuntu 8.04, I needed libglib2.0-dev package.)

A patched/enhanced osmcut.c which works better (no broken ways which were produced by the one from svn regularly) can be found at osm-talk.

$ wget http://hexagone.openstreetmap.fr/hexagone-latest.osm.bz2
$ bzip2 -d hexagone-latest.osm.bz2
$ mkdir cut-hexagone
$ ./osmcut/osmcut --force --destination cut-hexagone/ hexagone-latest.osm
$ mkdir garmin-map
$ cd garmin-map
$ java -Xmx512M -jar ../mkgmap-r590/mkgmap.jar --latin1 --gmapsupp --net ../cut-hexagone/*

You can finally put all the generated files into the garmin-map/ directory onto your Garmin GPS, as previously explained.

Unfortunately, there is a known issue with this solution - a number of short ways which cross the joins of these files will be lost, so your resulting map will not be 100% complete.

See also

Personal tools
Namespaces
Variants
Actions
site
Toolbox