[OSM-dev] Algorithmic Problem

Frederik Ramm frederik at remote.org
Thu Nov 22 12:58:33 GMT 2012


Hi,

On 11/22/2012 01:39 PM, Bernhard R. Fischer wrote:
> Does anybody have a suggestion on how to determine if a node is either
> on land or on the sea in the special case if the OSM data does not contain any
> piece of a coastline?

In tiles at home, where the minimum data extract size we worked with was 
one z12 tile's worth, we solved this with a 4096x4096 PNG file that 
indicated for each z12 tile on the planet whether it was land-only, 
sea-only, or mixed. The renderer would then look up the tile it was 
working on and knew what to expect.

See svn.openstreetmap.org/applications/rendering/png2tileinfo.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the dev mailing list