[OSM-dev] [PATCH] close-areas.pl: Fix coastline leaving/entering around pi=0

Jeroen Dekkers jeroen at vrijschrift.org
Sat Apr 28 12:52:00 BST 2007

I found an interesting cornercase while trying to render tile
2105,1344. The coastline exits as angle 0.49745684251941 and enters at
6.27805519711706. The current code checks whether the exit angle is
smaller and draws a way all around the box if it is, but fails to
check whether this is because it crosses boundary of 0 and 2*pi(). The
attached patch should fix that.

Jeroen Dekkers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: close-areas.patch
Type: application/octet-stream
Size: 1543 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070428/7a1ed871/attachment.obj>

More information about the dev mailing list