Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#4313 closed enhancement (duplicate)

[admin] Better rendering of boundaries that coincide with coastline

Reported by: Jonas Häggqvist Owned by: mapnik-team@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: Cc:

Description

I think it would be a nice improvement to the stylesheet if boundaries that lie on top of coastlines were either not rendered at all, or rendered less prominently (with high opacity maybe?).

Examples:

At least in Denmark, these boundaries are correct, and are in fact defined by the coastline, but I think most maps would only draw the part of the boundary that lies inland.

Change History (6)

comment:1 Changed 7 years ago by Jonas Häggqvist

Summary: Rendering of boundaries that coincide with coastlineBetter rendering of boundaries that coincide with coastline

comment:2 Changed 7 years ago by Ldp

The problem here is that coastline lines and boundary lines in the rendering db are not related at all, when those boundary lines are built from a relation. They're two separate objects. It's even more difficult when the member ways aren't tagged as boundary by themselves.

The only solution I currently see is:

a) Stop rendering boundary relations as lines. Use these only for the name labels.

b) Tag the member ways as boundary. With appropriate highest order admin_level in case where the way is part of multiple boundary relations. The ways will then render as boundary. This also neatly stops the 'stacked boundary' effect.

c) Do not drop natural=coastline ways on import into the rendering db. When a boundary line is also tagged as coastline, don't render it as boundary.

Either that, or you're welcome to write a full-fledged patch for osm2pgsql that will parse boundary relations and filter down their attributes to the member ways, keeping admin_level in check and also fully working with diffs. I think my proposal is easier. :)

comment:3 Changed 5 years ago by math1985

Summary: Better rendering of boundaries that coincide with coastline[admin] Better rendering of boundaries that coincide with coastline

comment:4 Changed 5 years ago by math1985

Resolution: duplicate
Status: newclosed

comment:5 Changed 5 years ago by Jonas Häggqvist

4313 is this ticket. Which is the correct ticket?

Note: See TracTickets for help on using tickets.