Steve,

I've downloaded both versions of gmapi-builder.py, the one from bitbucket and the one from the mkgmap code base. They're bit different and I couldn't find a version number when checking quickly, but only the mkgmap version supports -i for mdx files. Therefore I continued with the mkgmap codebase version only.

The tool runs through and creates a loadable gmap directory for BaseCamp (tested only on Windows).

But it also give out an 'error' or 'warning' about an unknown block, possibly to be checked further when implementing in mkgmap:

   Unknown Block: 54, length: 20,
   '\x00\x00\xf7\x00\x00\x00\x00\x00\x00j\x00\x00\x99\x00\x00\x00\x00`\x00\x00'

Attached the complete command output ran with -v.... please ignore the copyright/license output... the strange content is testing stuff from another construction area, as you know... license information and unicode ;-)

Testing inside this construction area will be next on my list for today...

Thanks and regards
Patrik

On 03.12.2016 23:26, Steve Ratcliffe wrote:
Hi

I'm wondering if it would be possible that mkgmap is able to
create/convert maps also in the gmap (gmapi) format used for BaseCamp on
Windows and Macintosh.

Yes, this seems a reasonable thing to do.

In the mkgmap code base there is a python program called
gmapi-builder.py in the scripts directory.

See also https://bitbucket.org/berteun/gmapibuilder/overview
and http://wiki.openstreetmap.org/wiki/Gmapibuilder.

This is a converter, but should work on all platforms with python
installed, or could be made to do so...
The first step is to verify that it works; then it should
be easy enough to implement within mkgmap itself.

..Steve
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/tools/gmapi-builder/gmapi-builder.py
 -v -o 
/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/install/Freizeitkarte_LUX_fr
 -t Freizeitkarte_LUX.tdb -s 6442.TYP -i Freizeitkarte_LUX.mdx -m 
Freizeitkarte_LUX_mdr.img -b Freizeitkarte_LUX.img *.img
Unknown Block: 54, length: 20, 
'\x00\x00\xf3\x00\x00\x00\x00\x00\x00\xa2\x00\x00h\x00\x00\x00\x00;\x00\x00'
TDB Version:        4.07
Product ID:         1
Family ID:          6442
Map Series:         Freizeitkarte_LUX
Map Family:         Freizeitkarte_LUX
Product Version:    16.12

Copyright:          (C) MAP: FZK PROJECT ÄÖÜÉÈÊ (FREE FOR RESEARCH AND PRIVATE 
USE)
(C) MAP DATA: OSM CONTRIBUTORS ÄÖÜÉÈÊ
(C) CONTOUR DATA: U.S. GEOLOGICAL SURVEY OR J. DE FERRANTI

Copyright:
Copyright:          (C) MAP: FZK PROJECT ÄÖÜÉÈÊ (FREE FOR RESEARCH AND PRIVATE 
USE)
Copyright:          (C) MAP DATA: OSM CONTRIBUTORS ÄÖÜÉÈÊ
Copyright:          (C) CONTOUR DATA: U.S. GEOLOGICAL SURVEY OR J. DE FERRANTI

Trademark:          Test preview map

Overview map:
    Map Number:         64420000
    Parent Map:         0
    Latitude North:     50.1855
    Longitude East:      6.5479
    Latitude South:     49.4385
    Longitude West:      5.7129
    Description:        Overview Map

Processing 64420001.img
Processing 64420002.img
Processing 64420003.img
Processing Freizeitkarte_LUX.img
Processing Freizeitkarte_LUX_mdr.img
MDR file
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to