View Single Post
Posts: 5 | Thanked: 0 times | Joined on Mar 2008
#15
Hi Nutter,

Many thanks for your program.
I use it for converting tiles from MapCruncher into format of MM2.
Now I have whole my region(square 800km-800km ) in N800.

Mapcruncher-> vbs script for converting tiles from Mapcruncher to MM1
format, -> map2gdbm.exe to convert MM1 into MM2.

I used a lot of raster topographical maps (1cm-1km, 1cm-2km) and I encountered
to a problem - some tiles in the map (MM2) were black.
I found the problem after analyze the source code of map2gdbm.cpp.

Some tiles has the size more than 64k, but the program uses 64k for read files(tiles)
and 128k(strange?) for write data to *db files.

I change next rows:

#define BUFFER_SIZE 1024*64

buf=new char[128*1024];

to:
#define BUFFER_SIZE 1024*256

buf=new char[256*1024];

and the problem was solved.

Before this I was need to convert PNG files (from MapCruncher) to JPG with compression (90% or 80%).
Now I can use renamed PNG->JPG files from MapCruncher.

Last edited by Nait; 2008-06-25 at 05:26.