[Tilesathome] Coastline loaded for latitude 60 and higher

Martijn van Oosterhout kleptog at gmail.com
Sun Nov 2 16:57:40 GMT 2008


On Sun, Nov 2, 2008 at 5:46 PM, Matthias Julius <lists at julius-net.net> wrote:
> Without looking at close-areas.pl this doesn't seem to be the case.
> Islands on a tile where the coastline does not cross tile borders are
> rendered inverted.  We might call that a bug in close-areas.

Looks like it, it only avoids looking at the oceantiles if a coastline
crosses the boundary, which makes it hard to determine the right
setting for islands/lakes. Whereas if there are any coastline segments
it has enough info to make the right determination.

The easiest fix seems to be to, in the case where a loop is found that
doesn't intersect the edge, calculate the size and remember the
orientation of the largest completely contained shape. Using this you
could correctly determine if the background is land or sea...

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the Tilesathome mailing list