Published by breki on 15 Feb 2008 at 06:49 pm
Kosmos – progress on rendering coastlines
Since I didn’t do too much posting lately, I just wanted to write a status report on Kosmos development. I managed to improve the coastline rendering algorithm – now it should be able to render any kind of coastline situation, not just islands isolated from the mainland. On the top of the page you can see one example: rendering of Croatia’s gulf of Kvarner. I added relief shading to improve the looks.
How does it work? Kosmos uses bounding boxes recorded in OSM files which are written by JOSM to indicate boundaries of map data downloaded from the OSM server. Kosmos then slices the coastlines and creates polygons using those boxes.
The next step will be to extend coastline rendering support for data downloaded using other means, which does not necessarily hold bounding boxes. After that and after testing the algorithm to remove any glitches, you can expect a new version of Kosmos.

