[OSM-talk] Lakes and relations, what did I break?
Frederik Ramm
frederik at remote.org
Mon Apr 21 02:14:45 BST 2008
Hi,
> > close_areas does get called now for natural=water, doesn't it? If not,
> > that could be another cause...
>
> It doesn't. Well, it is called for the whole input file but only
> processes stuff that is tagged natural=coastline!
It seems the problem is close-areas related after all.
Close-areas uses a tile index to find out what to do when it
encounters a tile with *no* coastline at all (and your tiles do not
have coastline on them). The tile index may indicate either land, sea,
or "mixed". It returns "mixed" for your tiles. I am leaning towards
changing this into "land" because your tiles are, from a "the coast of
Ireland" perspective, clearly inland... any thoughts on that, Martijn
(who invented the tile index)?
My initial implementation of close-areas did create a blue background
only if the tile index indicated "sea". It seems that meanwhile
someone has added code to "guess" the background colour in cases where
the tile index indicates "mixed". The guessing goes like this:
* if none of the four tiles to the east/west/north/south of the tile
is marked "land", then draw a blue background;
* if among these four neighbours there are more water tiles than land
tiles, then draw a blue background.
It seems that most of the tiles in that area return "mixed" from the
index so the first of these rules does generate a blue background.
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the talk
mailing list