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

Holes in scrub (relations, inner & outer)

0

At https://www.openstreetmap.org/?lat=46.84408&lon=11.69212&zoom=16&layers=M I have a scrub, where within there are some open areas with landuse=meadow (clearly visible in the data inspector).

The scrub (way 85074083) is outer on relation 1270018, with 7 ways being inner in this relation, but they don't show up on mapnik. I don't have problems putting holes in forests though.

On the other hand, https://www.openstreetmap.org/?lat=46.82837&lon=11.775642&zoom=18&layers=M shows a church inside a graveyard, but the graveyard is also over the church, even though I also made it a hole in the graveyard's releation. I don't see any difference (in tagging) to https://www.openstreetmap.org/?lat=46.843974&lon=11.725565&zoom=18&layers=M where it is rendered correctly. What am I doing wrong/what am I not seeing?

asked 13 Nov '10, 00:58

Alexander%20Roalter's gravatar image

Alexander Ro...
276151724
accept rate: 0%


One Answer:

0

You haven't tagged the relations correctly. For the scrub relation and the graveyard/church relation, they don't have any tags at all, though the ways that are part of them are tagged correctly. You have to tag the relations as type=multipolygon

Then the renderer will know it is a multipolygon relation, with separate outer and inner parts, and show it correctly. See the wiki page for details: Relation:multipolygon The second example graveyard/church relation is tagged as type=multipolygon, and as you say, it is rendered correctly.

answered 13 Nov '10, 01:50

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

Thanks for the explanation. Apparently, in woods the renderer renders holes just fine, so I didn't see the need for the multipolygon there. Don't remember how I did that for the one graveyard where it was already ok...

It renders OK now, but here https://www.openstreetmap.org/?lat=46.84927&lon=11.69452&zoom=16&layers=M (in the center) the big area is tagged as wood=confierous,landuse=forest, but is not rendered as such... One other difference in the graveyards was the other one that worked was tagged cemetary. Once changed to grave_yard, making a hole doesn't work as expected anymore.

(13 Nov '10, 10:25) Alexander Ro...

Source code available on GitHub .