logo separator

[mkgmap-dev] [PATCH v1] Check size of polygons to avoid exceeding subdivision size

From WanMil wmgcnfg at web.de on Tue Jun 21 20:24:28 BST 2011

>>
>> Just an idea that struck me, not a real solution, but a quick improvement:
>> At the moment mkgamp drops all the data in the area when it cannot be
>> subdivided. It would be at least some improvement if it would just drop some
>> data that exceeds the maximum content of an area instead of everything.
>>
>> bye
>>                     Nop
>>
>
> Generally yes.
> But most of the problems I have seen were caused by one polygon that
> exceeds the limits without any other element in the subdivision.
>
> I have an idea an will post a first patch within the next hour. This is
> a first workaround only but should do it for now.
>
> WanMil

Please try attached patch.
This is far from the optimal solution but I was able to remove the 
errors with it.

@Nop: Unfortunately I could not reproduce the problems at your 
problematic area so I wasn't able to see a real difference. Please test 
the patch. If it works for you some more work has to be done so that 
also the line filters checks against the subdivision size. It's not very 
probable that a single line exceeds the limits but who knows....

WanMil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subdiv_maxpolysize_v1.patch
Type: text/x-patch
Size: 7318 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110621/69f246ae/attachment.bin 


More information about the mkgmap-dev mailing list