NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

1
1

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

Borbus
46224
accept rate: 0%

Follow this question

By Email:

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

By RSS:

Answers

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:

×440
×341
×263
×252

question asked: 21 Jul '19, 11:06

question was seen: 995 times

last updated: 21 Jul '19, 11:06

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum