
I downloaded the latest gmapi-builder and tried the following: ===== python gmapi-builder -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img for_mapsource/40000001.img for_mapsource/40000001_mdr.img for_mapsource/63240001.img -s for_mapsource/MINIMAL.TYP Unknown Block: 54, length: 20, '\x00\x00\x17\x00\x00\x00\x00\x00\x00\xe6\x00\x00\xce\x00\x00\x00\x00D\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00 Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL Trademark: Test preview map Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5771 Longitude East: 127.7930 Latitude South: 4.5264 Longitude West: 115.6201 Description: Overview Map Missing part: 0 of S?.ϻ in IMG-file. ======= The same data was used for a mapsource installer compiler and there are no problems with mapsource. My old gmapi syntax was python gmapi-builder -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img for_mapsource/*.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img Same error results as above. -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Here: http://bitbucket.org/berteun/gmapibuilder/downloads/gmapi-builder.tar.gz as stated here: http://wiki.openstreetmap.org/wiki/Gmapibuilder/New_version On Wed, May 18, 2011 at 2:01 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On May 17, 2011, at 14:34, maning sambale wrote:
I downloaded the latest gmapi-builder and tried the following:
Where did you download this? I made some corrections, but I'm not sure if they are in the version you downloaded.
Cheers.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

OK, That Wiki version is missing some things, such as index file support and latin-1 encoding. Try the attached file: It's a version which I sent to this list a few months ago. I'll try to update this version in a few days to include the TYP file fix from the Wiki too. Here's an example command line call, which includes index files: $ gmapi-builder.py -t 14000000.tdb -b 14000000.img -s 14.TYP -i 14000000.mdx -m 14000000_mdr.img *.img Cheers. On May 18, 2011, at 4:57, maning sambale wrote:
Here: http://bitbucket.org/berteun/gmapibuilder/downloads/gmapi-builder.tar.gz as stated here: http://wiki.openstreetmap.org/wiki/Gmapibuilder/New_version
On Wed, May 18, 2011 at 2:01 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On May 17, 2011, at 14:34, maning sambale wrote:
I downloaded the latest gmapi-builder and tried the following:
Where did you download this? I made some corrections, but I'm not sure if they are in the version you downloaded.
Cheers.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Clinton, I used your attached script and the result is the same: python gmapi-builder -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xa7\x00\x00\x00\x00\x00\x00\xa2\x00\x00\xab\x00\x00\x00\x00\xfc\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00 Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL Trademark: Test preview map Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5771 Longitude East: 127.7930 Latitude South: 4.5264 Longitude West: 115.6201 Description: Overview Map Processing for_mapsource/40000001.img Processing for_mapsource/40000001_mdr.img MDR file Processing for_mapsource/63240001.img Missing part: 0 of S?.ϻ in IMG-file. On Thu, May 19, 2011 at 3:21 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
OK, That Wiki version is missing some things, such as index file support and latin-1 encoding.
Try the attached file: It's a version which I sent to this list a few months ago.
I'll try to update this version in a few days to include the TYP file fix from the Wiki too.
Here's an example command line call, which includes index files:
$ gmapi-builder.py -t 14000000.tdb -b 14000000.img -s 14.TYP -i 14000000.mdx -m 14000000_mdr.img *.img
Cheers.
On May 18, 2011, at 4:57, maning sambale wrote:
Here: http://bitbucket.org/berteun/gmapibuilder/downloads/gmapi-builder.tar.gz as stated here: http://wiki.openstreetmap.org/wiki/Gmapibuilder/New_version
On Wed, May 18, 2011 at 2:01 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On May 17, 2011, at 14:34, maning sambale wrote:
I downloaded the latest gmapi-builder and tried the following:
Where did you download this? I made some corrections, but I'm not sure if they are in the version you downloaded.
Cheers.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

The other thing we noticed was that individual files which get too large can also fail. Is it possible to try with smaller map tiles? Or can I download your img files to reproduce the error? Cheers On May 19, 2011, at 4:29, maning sambale wrote:
Clinton,
I used your attached script and the result is the same: python gmapi-builder -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xa7\x00\x00\x00\x00\x00\x00\xa2\x00\x00\xab\x00\x00\x00\x00\xfc\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00
Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL
Trademark: Test preview map
Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5771 Longitude East: 127.7930 Latitude South: 4.5264 Longitude West: 115.6201 Description: Overview Map
Processing for_mapsource/40000001.img Processing for_mapsource/40000001_mdr.img MDR file Processing for_mapsource/63240001.img Missing part: 0 of S?.ϻ in IMG-file.
On Thu, May 19, 2011 at 3:21 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
OK, That Wiki version is missing some things, such as index file support and latin-1 encoding.
Try the attached file: It's a version which I sent to this list a few months ago.
I'll try to update this version in a few days to include the TYP file fix from the Wiki too.
Here's an example command line call, which includes index files:
$ gmapi-builder.py -t 14000000.tdb -b 14000000.img -s 14.TYP -i 14000000.mdx -m 14000000_mdr.img *.img
Cheers.
On May 18, 2011, at 4:57, maning sambale wrote:
Here: http://bitbucket.org/berteun/gmapibuilder/downloads/gmapi-builder.tar.gz as stated here: http://wiki.openstreetmap.org/wiki/Gmapibuilder/New_version
On Wed, May 18, 2011 at 2:01 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On May 17, 2011, at 14:34, maning sambale wrote:
I downloaded the latest gmapi-builder and tried the following:
Where did you download this? I made some corrections, but I'm not sure if they are in the version you downloaded.
Cheers.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Dear Clinton, I tried splitting the map and I get this error: python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xe4\x00\x00\x00\x00\x00\x00V\x00\x00\xa9\x00\x00\x00\x00\xd5\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00 Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL Trademark: Test preview map Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.4893 Longitude East: 127.3535 Latitude South: 4.5264 Longitude West: 116.3672 Description: Overview Map Processing for_mapsource/40000001.img Processing for_mapsource/40000001.img Traceback (most recent call last): File "gmapi-builder.py", line 576, in <module> imgfile.dump(imgoutput) File "gmapi-builder.py", line 409, in dump os.mkdir(output_dir) OSError: [Errno 17] File exists: './OSM_PHIL.gmapi/OSM_PHIL.gmap/OSMTiles/40000001' The imgs are available for testing here: http://dl.dropbox.com/u/607635/osm-ph_gps_maps/dev/for_gmapi_test.zip The largest img is ~20MB. On Fri, May 20, 2011 at 4:43 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
The other thing we noticed was that individual files which get too large can also fail.
Is it possible to try with smaller map tiles?
Or can I download your img files to reproduce the error?
Cheers
On May 19, 2011, at 4:29, maning sambale wrote:
Clinton,
I used your attached script and the result is the same: python gmapi-builder -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xa7\x00\x00\x00\x00\x00\x00\xa2\x00\x00\xab\x00\x00\x00\x00\xfc\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00
Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL
Trademark: Test preview map
Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5771 Longitude East: 127.7930 Latitude South: 4.5264 Longitude West: 115.6201 Description: Overview Map
Processing for_mapsource/40000001.img Processing for_mapsource/40000001_mdr.img MDR file Processing for_mapsource/63240001.img Missing part: 0 of S?.ϻ in IMG-file.
On Thu, May 19, 2011 at 3:21 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
OK, That Wiki version is missing some things, such as index file support and latin-1 encoding.
Try the attached file: It's a version which I sent to this list a few months ago.
I'll try to update this version in a few days to include the TYP file fix from the Wiki too.
Here's an example command line call, which includes index files:
$ gmapi-builder.py -t 14000000.tdb -b 14000000.img -s 14.TYP -i 14000000.mdx -m 14000000_mdr.img *.img
Cheers.
On May 18, 2011, at 4:57, maning sambale wrote:
Here: http://bitbucket.org/berteun/gmapibuilder/downloads/gmapi-builder.tar.gz as stated here: http://wiki.openstreetmap.org/wiki/Gmapibuilder/New_version
On Wed, May 18, 2011 at 2:01 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On May 17, 2011, at 14:34, maning sambale wrote:
I downloaded the latest gmapi-builder and tried the following:
Where did you download this? I made some corrections, but I'm not sure if they are in the version you downloaded.
Cheers.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Update: Using the Gmapi Builder.app (downloaded Jan 2009) and the creations worked. However, I still prefer the python version for an automated updating of the maps. On Tue, May 31, 2011 at 11:44 AM, maning sambale <emmanuel.sambale@gmail.com> wrote:
Dear Clinton,
I tried splitting the map and I get this error: python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xe4\x00\x00\x00\x00\x00\x00V\x00\x00\xa9\x00\x00\x00\x00\xd5\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00
Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL
Trademark: Test preview map
Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.4893 Longitude East: 127.3535 Latitude South: 4.5264 Longitude West: 116.3672 Description: Overview Map
Processing for_mapsource/40000001.img Processing for_mapsource/40000001.img Traceback (most recent call last): File "gmapi-builder.py", line 576, in <module> imgfile.dump(imgoutput) File "gmapi-builder.py", line 409, in dump os.mkdir(output_dir) OSError: [Errno 17] File exists: './OSM_PHIL.gmapi/OSM_PHIL.gmap/OSMTiles/40000001'
The imgs are available for testing here: http://dl.dropbox.com/u/607635/osm-ph_gps_maps/dev/for_gmapi_test.zip
The largest img is ~20MB.
On Fri, May 20, 2011 at 4:43 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
The other thing we noticed was that individual files which get too large can also fail.
Is it possible to try with smaller map tiles?
Or can I download your img files to reproduce the error?
Cheers
On May 19, 2011, at 4:29, maning sambale wrote:
Clinton,
I used your attached script and the result is the same: python gmapi-builder -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xa7\x00\x00\x00\x00\x00\x00\xa2\x00\x00\xab\x00\x00\x00\x00\xfc\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00
Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL
Trademark: Test preview map
Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5771 Longitude East: 127.7930 Latitude South: 4.5264 Longitude West: 115.6201 Description: Overview Map
Processing for_mapsource/40000001.img Processing for_mapsource/40000001_mdr.img MDR file Processing for_mapsource/63240001.img Missing part: 0 of S?.ϻ in IMG-file.
On Thu, May 19, 2011 at 3:21 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
OK, That Wiki version is missing some things, such as index file support and latin-1 encoding.
Try the attached file: It's a version which I sent to this list a few months ago.
I'll try to update this version in a few days to include the TYP file fix from the Wiki too.
Here's an example command line call, which includes index files:
$ gmapi-builder.py -t 14000000.tdb -b 14000000.img -s 14.TYP -i 14000000.mdx -m 14000000_mdr.img *.img
Cheers.
On May 18, 2011, at 4:57, maning sambale wrote:
Here: http://bitbucket.org/berteun/gmapibuilder/downloads/gmapi-builder.tar.gz as stated here: http://wiki.openstreetmap.org/wiki/Gmapibuilder/New_version
On Wed, May 18, 2011 at 2:01 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On May 17, 2011, at 14:34, maning sambale wrote:
> I downloaded the latest gmapi-builder and tried the following:
Where did you download this? I made some corrections, but I'm not sure if they are in the version you downloaded.
Cheers.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Perhaps we should have one Server to put the newest version of the python script ? 2011/5/31 maning sambale <emmanuel.sambale@gmail.com>:
Update: Using the Gmapi Builder.app (downloaded Jan 2009) and the creations worked. However, I still prefer the python version for an automated updating of the maps.

Hi maning, I'm pretty sure that there is an error in your command line. I was able to compile the map properly with the following: python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/*.img -> Note that I changed the last line of your command from "for_mapsource/40000001.img for_mapsource/*.img" to just "for_mapsource/*.img". The extra "for_mapsource/40000001.img" was causing the program to attempt to add that file twice, which caused the failure. Cheers. P.S.: Your map looks really nice, by the way. :-) On May 31, 2011, at 5:44, maning sambale wrote:
Dear Clinton,
I tried splitting the map and I get this error: python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/40000001.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xe4\x00\x00\x00\x00\x00\x00V\x00\x00\xa9\x00\x00\x00\x00\xd5\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00
Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL
Trademark: Test preview map
Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.4893 Longitude East: 127.3535 Latitude South: 4.5264 Longitude West: 116.3672 Description: Overview Map
Processing for_mapsource/40000001.img Processing for_mapsource/40000001.img Traceback (most recent call last): File "gmapi-builder.py", line 576, in <module> imgfile.dump(imgoutput) File "gmapi-builder.py", line 409, in dump os.mkdir(output_dir) OSError: [Errno 17] File exists: './OSM_PHIL.gmapi/OSM_PHIL.gmap/OSMTiles/40000001'
The imgs are available for testing here: http://dl.dropbox.com/u/607635/osm-ph_gps_maps/dev/for_gmapi_test.zip
The largest img is ~20MB.

Dear Clinton, No Luck. I tried several combinations: python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/63*.img Unknown Block: 54, length: 20, '\x00\x00\xd5\x00\x00\x00\x00\x00\x00~\x00\x00\x8c\x00\x00\x00\x00\xbd\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00 Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL Trademark: Test preview map Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5332 Longitude East: 127.1338 Latitude South: 4.5703 Longitude West: 115.6201 Description: Overview Map Removing existing file './OSM_PHIL.gmapi' recursively Processing for_mapsource/63240001.img Processing for_mapsource/63240002.img Processing for_mapsource/63240003.img Processing for_mapsource/63240004.img python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/*.img Unknown Block: 54, length: 20, '\x00\x00\xd5\x00\x00\x00\x00\x00\x00~\x00\x00\x8c\x00\x00\x00\x00\xbd\x00\x00' TDB Version: 4.07 Product ID: 1 Family ID: 639 Map Series: OSM_PHIL Map Family: OSM_PHIL Product Version: 1.00 Copyright: OSM Street map Copyright: http://www.openstreetmap.org/ Copyright: Map data licenced under Creative Commons Attribution ShareAlike 2.0 Copyright: http://creativecommons.org/licenses/by-sa/2.0/ Copyright: Map created with mkgmap-r1867 Copyright: Program released under the GPL Trademark: Test preview map Overview map: Map Number: 63240000 Parent Map: 0 Latitude North: 21.5332 Longitude East: 127.1338 Latitude South: 4.5703 Longitude West: 115.6201 Description: Overview Map Removing existing file './OSM_PHIL.gmapi' recursively Processing for_mapsource/40000001.img Processing for_mapsource/40000001_mdr.img MDR file Processing for_mapsource/63240001.img Processing for_mapsource/63240002.img Processing for_mapsource/63240003.img Processing for_mapsource/63240004.img I do not know what the "Unknown Block: 54, length: 20,... " error means. On Fri, Jun 3, 2011 at 12:04 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
Hi maning,
I'm pretty sure that there is an error in your command line. I was able to compile the map properly with the following:
python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/*.img
P.S.: Your map looks really nice, by the way. :-)
Thanks! -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Hi maning, The following should be the correct command line: On Jun 3, 2011, at 7:34, maning sambale wrote:
python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/*.img
The error which is being reported is caused by an unknown sequence of bytes at the end of the 40000001.tdb. However the .gmapi file seems to be compiled correctly despite this. I was able to install and view the resulting map. So the error appears (at least superficially) to be harmless. Can you try and see if the .gmapi file works for you and your users? If so, you could simply remove the -v option from the command line, and the error will not be reported. In case anyone is interested, this is the series of bytes at the very end of the tdb file which cause the problem: 00 00 E4 00 00 00 00 00 00 56 00 00 A9 00 00 00 00 D5 00 00 This comes after the information for the last img file. Cheers.

Dear Clinton, Thanks a heap! It seems that the conflict is on the next step of my script (not the gmapi-builder). On Fri, Jun 3, 2011 at 3:00 PM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
Hi maning,
The following should be the correct command line:
On Jun 3, 2011, at 7:34, maning sambale wrote:
python gmapi-builder.py -v -t for_mapsource/40000001.tdb -b for_mapsource/40000001.img -s for_mapsource/MINIMAL.TYP -i for_mapsource/40000001.mdx -m for_mapsource/40000001_mdr.img for_mapsource/*.img
The error which is being reported is caused by an unknown sequence of bytes at the end of the 40000001.tdb. However the .gmapi file seems to be compiled correctly despite this. I was able to install and view the resulting map.
So the error appears (at least superficially) to be harmless.
Can you try and see if the .gmapi file works for you and your users? If so, you could simply remove the -v option from the command line, and the error will not be reported.
In case anyone is interested, this is the series of bytes at the very end of the tdb file which cause the problem:
00 00 E4 00 00 00 00 00 00 56 00 00 A9 00 00 00 00 D5 00 00
This comes after the information for the last img file.
Cheers. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
participants (3)
-
Clinton Gladstone
-
flabot@googlemail.com
-
maning sambale