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

Struggling with 4 way polygons

1

Hi: I need help rendering this water park.

https://www.openstreetmap.org/edit?editor=id&lat=38.754401&lon=-77.440391&zoom=18

There are four ways. The inside is a swimming pool (way #1), then the paved area (way #2) then the ‘river bank’ (way #3) and finally the boundary of the paved area around (way #4).

I know how to render two polygons, for example a lake surrounded by a wooded area. The lake = the inner polygon will get normal tags and the outer way (wooded area) gets its tags in ‘Relations.’

I also read item #7 at

https://wiki.openstreetmap.org/wiki/Relation:multipolygon

How should I apply this?

My first ‘set’ of polygons would be #1 ‘inner’ and #2 ‘outer’?

Then another set of polygons, that is #3 as ‘inner’ and #4 as ‘outer’

Or only one polygon as ‘inner’ (#1) and the remaining three as ‘outer’?

Thank you.

asked 20 Jul '13, 02:30

slover98's gravatar image

slover98
567141732
accept rate: 5%

edited 25 Sep '15, 06:32

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

-1

After many attempts I think I made it work. Step 1: Using Potlatch, I created the first pair of polygons, #1 (inner) and #2 (outer). I tagged the inner as 'swimming_pool' and outer in Relations as pedestrian paved area.

Step 2. I created another pair of polygons, #2 (inner) and #3 (outer). I tagged the inner as pedestrian paved area and outer in Relations as 'swimming_pool'.

Step 3. I created another pair of polygons, #3 (inner) and #4 (outer). I tagged the inner as 'swimming_pool' and outer as pedestrian paved area.

The reason I believe it worked is that the swimming pool and the 'river' ring are rendered in blue and the paved area in light gray color.

If you need more details feel free to contact me. Martin

answered 20 Jul '13, 14:41

slover98's gravatar image

slover98
567141732
accept rate: 5%

Source code available on GitHub .