NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

So as I started right with editing complex multipolygons I was sure when you have for e.g. a highway with two areas attached to it, you have to split the way at the proper nodes, draw the external lines of the areas and define them with outer roles.

image

Now "accidentally" I've found that you can just draw the two areas in ID or JOSM taking care that the nodes snap to the existing nodes so you have two selectable closed areas (on the screenshot both are selected, the "shared segment" shows two directions), no multipolygon stuff at all, and no validation errors in JOSM or geofabrik's OSM Inspector.

image

So can it be said that the ONE and ONLY case when you need multipolygons is when you have to punch a hole into an area with inner role otherwise unnecessary?

Thanks

asked 26 Dec '17, 10:25

I_G's gravatar image

I_G
21225
accept rate: 0%


As always it is a matter of taste, and judgement. If you are looking at larger areas, and especially if the line between the two areas has a character of its own (e.g. a river, a fence, or a highway as in your example), then it might be advisable to use multipolygons for clarity. Personally I wouldn't use multipolygons if we're only talking 4 or 5 shared nodes but I would start thinking about it if it was 40 or 50!

permanent link

answered 26 Dec '17, 11:01

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Yeah, as it seems that both are valid constructions so it can be a judgement call. I'd think that the advantage of the second example would be that you don't have to split that line in the middle. I am personally responsible for a lot of nice long tracks/paths turning into even more not so nice short tracks/paths because of splitting them to use their segments in multipolygons. And then if you want to change a tag you have to change on 10 short paths instead of 1 long one, the original history is also remains only on one path... so yeah, as always you get some, you lose some. Anyways thanks for the reply.

(26 Dec '17, 15:01) I_G
4

An observation: while there is not unanimous agreement on the topic, most mappers will agree that "gluing" areas (I suspect in your case they are actually landuse areas) to highways is not a particularly good idea, so maybe you should simply change your editing style and avoid the multi-polygon issue that way.

(26 Dec '17, 15:30) SimonPoole ♦

I do this "gluing" only when that track/path/etc. is really one of the borders of an area, when it's not I don't glue them just to be more "tidier". Or you mean when it really is the border still draw the entire area separately just very close to that highway?

(26 Dec '17, 17:32) I_G
4

As a experienced mapper who has edited quite a substantial number of roads, I have personally come to really dislike highways (paths, tracks, roads) glued to areas, so I recommend that the two are always kept separate. Anecdotal, I once saw someone mapping bus routes in Copenhagen, where at the time a number of landuse=residential polygons were glued to roads. This guy apparently didn't notice the polygons and ended up splitting them, rather than split the roads and... put parts of the bus route relations on some of the split landuse ways. So, while it can be quite annoying to work with roads glued to areas, there's also absolutely no guarantee that subsequent (inexperienced) mappers will even notice that an area is glued to the road they are editing or that a road is glued to the area they are editing.

(26 Dec '17, 19:47) Hjart
1

Another situation where multipolygons are useful is when two riverbank polygons meet. To join them I create two multipolygons and then make it so they share one common way, the way that spans their intersection.

Also, each way in OSM is limited to 2000 nodes. When you create an object with more then that number of nodes, you must split it and then make those two ways into a multipolygon.

(27 Dec '17, 01:41) AlaskaDave
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×132
×32
×1

question asked: 26 Dec '17, 10:25

question was seen: 2,307 times

last updated: 27 Dec '17, 01:41

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum