logo separator

[mkgmap-dev] [PATCH v2] - handle "anti-islands"

From Mark Burton markb at ordern.com on Tue Jan 26 17:51:07 GMT 2010

v2 - now checks to see if an anti-island is surrounded by water or land.

If surrounded by water, it is converted back into an island (tagged
with the land tag) and a warning message is issued.

Tested with the GB map, it detected a handful of anti-islands that
should have been islands but their points were in the wrong order
(backwards).

---------------

This patch extends the sea generation stuff to cope with anti-islands
(water inside, land outside and, presumably, where the anti-treasure
is hidden). Anti-islands are tagged natural=water (you can't use
natural=sea because it will be beneath the surrounding land polygon).

Note that if your map contains any islands whose direction is incorrect,
they will now be filled with water. To help find such islands, a
warning message is output when an anti-island is discovered. The upside
is that if your map contains anti-islands whose direction is correct,
they will now become visible.

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mb-anti-islands-v2.patch
Type: text/x-patch
Size: 8313 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20100126/e8197f8a/attachment.bin 


More information about the mkgmap-dev mailing list