Credits:-

The Garmin format img files you find here were made possible because of the efforts of the openstreetmap (OSM) community.

Obviously, the OSM data itself is of prime importance, but there has also been considerable work done to create tools to edit and use the data.

To create these img files, I first download an extract of the OSM data that includes the Australian landmass.

This is done using the OSM XAPI using the command :-

wget --timeout=0 "http://www.informationfreeway.org/api/0.5/*[bbox=110,-44,156,-9]" -O australia.osm

Once I have the Australian data, I then use a perl script to extract the different states.

planetosm-excerpt-area.pl -bbox -37,140.971,-28,154.500 australia.osm > NSW.osm

planetosm-excerpt-area.pl -bbox -39.4,140.2,-33.7,151.5 australia.osm > VIC.osm

planetosm-excerpt-area.pl -bbox -29.3,137.5,-10,155.5 australia.osm > QLD.osm

planetosm-excerpt-area.pl -bbox -44.16,142.47,-39.16,149.706 australia.osm > TAS.osm

planetosm-excerpt-area.pl -bbox -39.5,127.35,-25.62,141.965 australia.osm > SA.osm

planetosm-excerpt-area.pl -bbox -36.180,111.03,-13.138,130.04 australia.osm > WA.osm

planetosm-excerpt-area.pl -bbox -26.39,128.44,-10,139 australia.osm > NT.osm

This perl script is written by Nick Burch and can be found at http://svn.openstreetmap.org/applications/utils/osm-extract/

This creates individual OSM files for each state, which are then converted to Garmin .img files using Steve Ratcliffe's excellent mkgmap software. mkgmap is written in Java.

java -jar mkgmap.jar --mapname=63240001 --description=OSM_NSW NSW.osm

java -jar mkgmap.jar --mapname=63240002 --description=OSM_VIC VIC.osm

java -jar mkgmap.jar --mapname=63240003 --description=OSM_QLD QLD.osm

java -jar mkgmap.jar --mapname=63240004 --description=OSM_NT NT.osm

java -jar mkgmap.jar --mapname=63240005 --description=OSM_SA SA.osm

java -jar mkgmap.jar --mapname=63240006 --description=OSM_WA WA.osm

java -jar mkgmap.jar --mapname=63240007 --description=OSM_TAS TAS.osm



Back to index.