OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2018-11-26 16:22:48

eteb3
Member
Registered: 2014-04-19
Posts: 65

Why doesn't this significant building appear on Mapnik?

I hope these newbie questions don't get wearing...

I've been scratching my head as to why the very significant Peterborough Guildhall doesn't show up in Mapnik as a building, only as a disembodied name:
photo | permalink to OSM object | iD wireframe on Mapnik render so you can see what I'm looking at.

I wondered if it's because it's 'covered over' by the pedestrian area here?
https://www.openstreetmap.org/way/590865088

If so, would there be a way of showing the pedestrian area differently? (As a relation, with the Guildhall polygon forming an inner boundary?)

There's a pic of Cathedral Square here if it's useful - edge of Guildhall is just visible on the left of the pic, which faces east.

I know I'll probably to be told 'don't tag for the renderer' - so a solution that doesn't tend that way that would be great!

Thanks all as always.

Last edited by eteb3 (2018-11-26 16:26:03)

Offline

#2 2018-11-26 17:02:46

wowik
Member
From: Zelenograd
Registered: 2009-09-29
Posts: 8,324

Offline

#3 2018-11-26 17:19:41

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,134

Re: Why doesn't this significant building appear on Mapnik?

It's actually a styling decision by the developers of that map style.  You'll need to "cut a hole" in the pedestrian area for it to appear.  In a sense that's correct - the pedestrian area doesn't "extend underneath" the guildhall I guess.

Other maps may make different styling decisions - https://map.atownsend.org.uk/maps/map/m … =-0.243432 is one example.

Offline

#4 2018-11-26 17:22:52

kocio
Administrator
From: Warszawa
Registered: 2013-09-04
Posts: 3,253
Website

Re: Why doesn't this significant building appear on Mapnik?

Well, this is the old problem with how OSM Carto treats buildings and pedestrian areas. It was done by design and there's no simple solution for that:

https://github.com/gravitystorm/openstr … issues/688

Offline

#5 2018-11-26 18:58:37

eteb3
Member
Registered: 2014-04-19
Posts: 65

Re: Why doesn't this significant building appear on Mapnik?

Thanks all.

SomeoneElse wrote:

You'll need to "cut a hole" in the pedestrian area for it to appear.

How would I go about that? Could I give the tag foot=no to the building? Or would dealing with Cathedral Sq as a relation work?

Offline

#6 2018-11-26 19:01:37

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,134

Re: Why doesn't this significant building appear on Mapnik?

Yes, you'll need to make it a "multipolygon" relation.  See https://wiki.openstreetmap.org/wiki/Mul … er_ring.29 for more details.

Offline

#7 2018-11-27 14:56:51

eteb3
Member
Registered: 2014-04-19
Posts: 65

Re: Why doesn't this significant building appear on Mapnik?

Thanks, that's very helpful - I did that, and then today there was one further edit from mboeringa.

From which I can infer, for anyone finding this thread:

Once you've merged the closed ways into a multipolygon, you will need to remove tags from the larger area (ie, the closed way that is now the outer boundary of the multipolygon).

Offline

#8 2018-11-28 20:57:13

Mecki
Member
Registered: 2011-08-01
Posts: 126

Re: Why doesn't this significant building appear on Mapnik?

Offline

#9 2018-11-30 05:59:18

kocio
Administrator
From: Warszawa
Registered: 2013-09-04
Posts: 3,253
Website

Re: Why doesn't this significant building appear on Mapnik?

After some thinking: making holes is perfectly sane way. Squares are not necessary the same as pedestrian areas, they can contain buildings, green patches, fountains etc. You should tag square with a place=square (with no holes, of course) to indicate that both pedestrian area and building belong to the same square.

Offline

#10 2018-12-07 11:00:52

eteb3
Member
Registered: 2014-04-19
Posts: 65

Re: Why doesn't this significant building appear on Mapnik?

Thanks both.

kocio - just seen this. So would the relation be

>place=square + name=Cathedral Square

with members as

>>pedestrian area (outer)
>>>building as hole in area (inner)
>>>greens as hole in area (inner)
>>>etc (inner)

?

Offline

#11 2018-12-07 18:11:54

alester
Member
Registered: 2011-09-21
Posts: 242

Re: Why doesn't this significant building appear on Mapnik?

eteb3 wrote:

Thanks both.

kocio - just seen this. So would the relation be

>place=square + name=Cathedral Square

with members as

>>pedestrian area (outer)
>>>building as hole in area (inner)
>>>greens as hole in area (inner)
>>>etc (inner)

?

I would do it the opposite way. The relation should be the pedestrian area, because that's the one that needs the holes cut out of it. Then, the outer way can be the place=square, which would cover everything inside that way (including the holes, because the way doesn't have anything cut out of it).

Offline

#12 2018-12-07 18:54:32

kocio
Administrator
From: Warszawa
Registered: 2013-09-04
Posts: 3,253
Website

Re: Why doesn't this significant building appear on Mapnik?

I agree with @alester.

Offline

#13 2018-12-11 00:23:25

eteb3
Member
Registered: 2014-04-19
Posts: 65

Re: Why doesn't this significant building appear on Mapnik?

Thanks both.

Offline

Board footer

Powered by FluxBB