Open der-stefan opened 6 years ago
For clarification:
First I must complement you on a great project! You have created a very beautiful and useful topographic map!
On my development instance of OTM, I removed the outlines of all water polygons to include the water ways. The result is pretty good.
verses original https://www.opentopomap.org/#map=15/53.56720/-351.44485
That looks fine, but it is not what we want: We want to have water outlines... I have no clue how to solve the problem of neighboring water polygons so far. Issue stays open.
At least for vector tiles you can merge neighbouring geometries with _stunion for a specific tile.
SELECT st_union(way) AS geom,
FROM planet_osm_polygon
WHERE way && !bbox!
AND ("natural" = 'water' or landuse in ('reservoir', 'basin') or waterway = 'riverbank')
This merges all water polygons into one for the specific tile thus avoiding merging all water around the globe. I cannot see why this would not work for Mapnik/raster tiles. Two rivers (with separate waterway=riverbank polygon) meet here: Downsides:
Water area outlines should not be drawn between polygons of the same type. Example: https://opentopomap.org/#map=14/51.88499/4.29141
This is not so easy to fix: Water outlines are currently rendered on top of the polygons. If the outlines are rendered below the fill color, they would only be outside of them. In order to have the same line width, the outlines would have to increase, thereby increase the overall polygon size.
The same problem is with forest outlines.