<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Steve, hi Andrzej,<br><br>please check attached patch. <br>It doesn't implement any big change, it just avoids to <br>create sub divisions which are larger than needed<br>and doesn't write empty sub divs.<br><br>What do you think?<br><br>Gerd<br><br><br><br><div>> Date: Fri, 14 Nov 2014 12:05:08 +0000<br>> From: steve@parabola.me.uk<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Optimizing MapSplitter<br>> <br>> <br>> Hi<br>> <br>> > I think I'll try to change this:<br>> > 1) Put large objects (large bbox, maybe only few points as with 0x4b<br>> > background polygon)<br>> > into there own sub divs and don't add small objects to those sub divs<br>> > 2) Create smaller sub divisions in dense areas<br>> <br>> I've been thinking of this way<br>> 1. Start with everything in its own subdivision.<br>> 2. For each subdivision:<br>> Find other subdivisions that completely contain it.<br>>         ...but ignore subdivisions that are "too big".<br>>         Combine the subdivision into the smallest of those found<br>> that still have room.<br>> 3. Repeat "enough" times.<br>> <br>> - "too big": a desktop zoomed to just the level covers less than<br>> 1000000 square units. My etrex 30 covers about 40000 square units<br>> if I measured it correctly. So I would guess that divs can be<br>> freely combined up to those kinds of sizes.<br>> <br>> But for larger containing divs, you would probably want to make<br>> sure that all elements are at least 50% of the size of the division.<br>> <br>> - "enough": I've no idea what that would mean or even if this would<br>> work at all!<br>> <br>> > I don't know yet how to do that, so I'll sleep about about again ;-)<br>> <br>> Yes that is the problem!<br>> <br>> ..Steve<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>