[OSM-talk] We need better docs on installing Haiti Garmin maps + a MapSource installer

Lambertus osm at na1400.info
Wed Jan 27 10:16:55 GMT 2010


Frederik Ramm wrote:
> The Geofabrik process does not have multiple steps (and thus no "map 
> combining" step). I use the following parameters with mkgmap:
> 
> -n 80000111 --description="OSM Map of Haiti dated $DATE" --country=HAITI 
> --region-name=HAITI --region-abbr=HT1 --country-abbr=HT --latin1 
> --road-name-pois --gmapsupp --draw-priority=99
> 
The step I call 'combining' is where the --gmapsupp parameter is given 
which is the above statement.

> The "-n" and "--region-*" were requested by someone who needed the older 
> .img files (not gmapsupp.img) for installation on an older type Garmin.
> 
> I don't even specify --route - should I? Nobody ever complained.
> 
Not exactly sure, but I don't think that --route is enabled by default 
(--net is implied when --route is provided). I think you have to add it. 
For Windows MapSource you have to add the --tdbfile as well.

> I'm happy to modify that to whatever makes sense but admit to having 
> absolutely null knowledge of "installers". When I add --nsis to the 
> above, I get the following additional files: osmmap_license.txt (192 
> bytes) and osmmap.nsi (1916 bytes). What do I do with them? Simply put 
> them in the download directory and everything works magically? Would be 
> too easy wouldn't it ;-)
> 
Oops, sorry, it's apparently too long since I worked on that specific 
bit. I've looked it up now:

The nsi file must be given to NSIS (which is available in most linux 
distributions). NSIS will produce the executable, e.g. "makensis osmmap.nsi"

If you want to add (partial) address searching ability then you can also 
add the --index parameter which will create an additional .mdx file.

So, all things combined I think your commandline should look like:
--mapname=80000111
--description="OSM Map of Haiti dated $DATE"
--country=HAITI
--region-name=HAITI
--region-abbr=HT1
--country-abbr=HT
--latin1
--road-name-pois
--gmapsupp
--draw-priority=99
--nsis
--index
--tdbfile
--overview-mapname=80000000	
--family-id=3456		(any number will do usually)

After that execute: makensis 80000000.nsi to create the MapSource installer.

If you also want to make an installer available for MacOSX (RoadTrip) 
then you can use the gmapibuilder script 
(http://wiki.openstreetmap.org/wiki/Gmapibuilder) from: 
http://planetosm.oxilion.nl/~lambertus/gmapi-builder/

Then execute after the Mkgmap step:
gmapi-builder.py
-t ./80000000.tdb
-b ./80000000.img
-i ./80000000.mdx
-m ./80000000_mdr.img
./80000111.img

Hope this helps.




More information about the talk mailing list