logo separator

[mkgmap-dev] patch to write polygons in decreasing order

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Sat Oct 8 17:32:04 BST 2016

Hi

I have a patch that outputs polygons into the map file in decreasing
size order, so that, assuming equal _drawOrder, the Garmin device
renders small details over larger areas, much like how they appear on
OpenStreetMap.org.

As well	as sorting by size, polygons that straddle subDivisions	
are cut up and placed into their correct subdivision, rather than being
put into an arbirary one, which, if it isn't the one in focus, renders
over the focus subdivision.

The original, full, area of polygons is tracked	through	a
ny cutting and clipping so that relative ordering is correct across
subdivision and map boundaries.

All this is controlled by the option --order-by-decreasing-area, with a
default of false that leaves the behavior of mkgmap unchanged.	A
s such, I think this patch could be applied to the trunk development.

Regards
Ticker Berkin
mk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sortAreas.patch
Type: text/x-patch
Size: 19086 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20161008/b82429c9/attachment-0001.bin>


More information about the mkgmap-dev mailing list