Why not ask your question on the new OpenStreetMap Community Forum?


I would like to extend the OSM carto style to render coastlines, riverbanks and other edges of water features with a line. This is quite easy to achieve by just adding another layer for ocean and water features which render lines on top of the polygon-fill layers.

This looks nice and works as expected, except for parts where the water areas join. In OSM this happens along rivers and when rivers meet coastlines. I thought about trying to make this work using a stylesheet alone, and it can almost be done by drawing the casing first like is done with lines, but not quite, there are still artifacts at the joins, and it's difficult to get the layer ordering right.

It seems like the best way would be to preprocess the data and produce another set of ways that really do represent banks. That means that if any natural=water/waterway=riverbank/natural=coastline overlap, just remove both ways.

Is this a sensible approach? What tool can I use to preprocess the data in this way?

asked 21 Jul '19, 11:06

Borbus's gravatar image

accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 21 Jul '19, 11:06

question was seen: 754 times

last updated: 21 Jul '19, 11:06

powered by OSQA