osmium icon indicating copy to clipboard operation
osmium copied to clipboard

Multipolygon: handling of closed touching inner rings

Open simon04 opened this issue 13 years ago • 4 comments

According to https://wiki.openstreetmap.org/wiki/Relation:multipolygon#Touching_inner_rings, touching inner rings may be used if the ways are closed.

Osmium, however, fails on such multipolygons, e.g., http://www.openstreetmap.org/browse/relation/1517038:

Building multipolygon based on relation 1517038 failed: invalid ring

simon04 avatar Nov 25 '12 13:11 simon04

"fails on such multipolygons" is a bit of a generalization. Osmium works fine in all other "touching inner rings" cases that I have seen. But you are right, in this case it doesn't work. Geometry of the multipolygon looks fine, so this should work. So this is a bug that needs looking into.

joto avatar Nov 25 '12 15:11 joto

"fails on such multipolygons" is a bit of a generalization.

It wasn't meant as an insult of Osmium nor as overly generalization, but I experienced this behaviour on several multipolygons of this type in my region … :-)

simon04 avatar Nov 25 '12 18:11 simon04

Can you give some more examples? Maybe we can figure out what they have in common and this way figure out where the problem might be.

joto avatar Nov 25 '12 22:11 joto

Those are the errors reported by the OSM Inspector as Multipolygon/Touching inner rings. All examples I've seen have at least two inner rings with a common way segment.

simon04 avatar Nov 25 '12 22:11 simon04