logo separator

[mkgmap-dev] Optimizing MapSplitter

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat Nov 15 11:06:54 GMT 2014

Hi Andrzej,

yes, I did not test with your data yesterday
and did not notice an old problem with high precision coordinates.

Attached is a new patch that implements both changes 
which I suggested here:

I am not sure about the criteria.
The line 
final int LARGE_OBJECT_DIM = 1024; 
gives a measurement for large objects in map units.
Each large object is placed in its own sub div.

The line 
int wantedSize = MAX_RGN_SIZE / 10; // smaller values result in more sub divs 
determines the approx. number of bytes
in one sub div. 
A value near 0 means many very small sub divs, a value near MAX_RGN_SIZE
is what the trunk version uses.

Maybe we have to create parameters for them.


> Date: Fri, 14 Nov 2014 22:54:38 +0100
> From: popej at poczta.onet.pl
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] Optimizing MapSplitter
> Hi Gerd,
> your second patch doesn't work for me. When compiling I get multiple 
> warnings like this:
> SEVERE (MapArea): 29483021.osm.pbf: Point with type 0x2d02 at 
> http://www.openstreetmap.org/?mlat=54.594173&mlon=18.815332&zoom=17 is 
> outside of the map area centred on 
> http://www.openstreetmap.org/?mlat=54.509804&mlon=18.684912&zoom=17 
> width = 12155 height = 8502 resolution = 15
> Img is much bigger, like 5MB instead of 3.8MB and I can't decompile it 
> with GPSMapEdit. BaseCamp doesn't display it. I assume img is damaged.
> -- 
> Best regards,
> Andrzej
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141115/c438e454/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapsplit-mini-v3.patch
Type: application/octet-stream
Size: 7471 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141115/c438e454/attachment-0001.obj>

More information about the mkgmap-dev mailing list