This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Problem hidding a maritime border with mapnik

2
1

Hi,

I'm new to osm and mapnik, i finally found a way to hide the borders tagged as maritime through mapnik but there is a border, also tagged as maritime on which my rules are not applied.

Only belgium data are imported but a border of Netherlands is showing on the map: Click here for screenshot

You can see that the maritime borders of Belgium are correctly hidden but there is one remaining in front of the Netherlands. The data were downloaded this morning from geofabrik. If you follow this link you can see how that border is tagged, it has admin_level=2 and maritime=yes.

Can anyone explain why my rules are not applied on that border? And why it is in the Belgium data extract whereas it's related to the Netherlands?

Here is my mapnik config from layer-admin.xml.inc from dropbox

asked 16 Jun '14, 13:26

QuentP's gravatar image

QuentP
41115
accept rate: 0%

edited 16 Jun '14, 13:28

Me too having having same problem. i followed the instruction given in http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ in planet_osm_roads i cant find any attributes with name maritime. in planet_osm_line i have find only few row for condition "boundary" = 'maritime'

Can u explain how did u import the data to postgres ?

(10 Nov '14, 11:31) Arun kmp
(12 Nov '14, 08:26) QuentP

One Answer:

1

At a very rough guess I'd suggest looking at the relations which include that way. You could try a PostGIS query to find which linestrings in your database intersect this area, and examine their tags.

Personally I have chosen to change the ordering of my rendering thus:

  1. (bottom) Land
  2. Borders
  3. (top) Sea

such that the sea always appears above these accursed fugly maritime boundaries.

answered 12 Nov '14, 10:55

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

edited 12 Nov '14, 10:55

Source code available on GitHub .