[OSM-newbies] update gmapsupp.img

Mark Williams mark.666 at blueyonder.co.uk
Sun Jan 27 19:14:28 GMT 2008


Harald Kirsch wrote:
> 
> Am 27.01.2008 12:33 schrieb Dermot McNally:
>> On 27/01/2008, Harald Kirsch <pifpafpuf at gmx.de> wrote:
>>
>>> Hmmmpf. It would have been nice to generally have the most recent data
>>> around my area without the need to always generate all of Germany.
>> How quickly do you want to see the updates? As a general rule,
>> computerteddy releases updates every 1-2 weeks.
> 
> Yes, I know. Just thought ... This is not mission critical, but it would
> have been nice.
> 
> Thanks,
> Harald.
> 
> 
As others have said, I do this regularly; I download uk.osm, (not living
in Germany), then cut this in 2 halves using the extract-polygon.pl perl
script, then do mkgmap; in fact, I use a script:

if [ "$1" == "" ] ;
then
 echo Usage: $0 uk-latest.osm
else
 echo Preparing Garmin version of $1:
 echo Extracting South..
 perl extract-polygon.pl -i $1 -p uk.south.poly -o uk.south.osm
 echo Extracting North..
 perl extract-polygon.pl -i $1 -p uk.north.poly -o uk.north.osm
 echo Preparing .img file..
 cd ~/geo/mkgmap
 java -Xmx640M -jar mkgmap.jar --gmapsupp ../uk.north.osm ../uk.south.osm
 echo Garmin extraction Finished.
 echo Resultant file is in mkgmap/gmapsupp.img
 cd ..
fi

This is invoked as ./mkukgarminmap uk.xx.osm after downloading, I go
make coffee, then copy gmapsupp.img to Garmin via USB & go mapping.

It is possible to grab & save a small area with josm, which will compile
very quickly with mkgarminmap - you can update this 4-hourly if you so
desire...

Mark

PS watch the line-wrap on the java... line





More information about the newbies mailing list