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

OSM-Inspector, View Multipolygon, touching-inner-rings: are these errors or what is it that osm-inspector wants to tell us?

1

I use osm-inspector not only to verify my own work but to correct that of other contributors if they are within my areas of interest.

I far as I understand the Multipolygon instructions touching-inner-rings are allowed in OSM in a multipolygon contruction: See https://wiki.openstreetmap.org/wiki/Relation:multipolygon#Touching_inner_rings

However the osm-inspector displays touching-inner-rings with the comment [broken/lost image here]

Are these then errors and if not what is the osmi trying to tell me?

asked 29 Apr '12, 10:50

dcp's gravatar image

dcp
721374456
accept rate: 0%

edited 25 Sep '15, 06:27

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


2 Answers:

1

Touching inner rings are a violation of the OGC "Simple Features" specification and therefore some programs that process OSM data might have a problem with that, and discard the polygon that has touching inner rings.

The standard OSM rendering process that is based on an osm2pgsql import of OSM data into a PostGIS database has no problems with touching inner rings. You can switch off the "touching inner rings" layer in OSMI if you want.

answered 29 Apr '12, 11:22

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 30 Apr '12, 10:57

Thank-you Frederik for the prompt reply. I know I can switch it off but that is not what disturbs me.

I understand now that the errormsg is not an error at all and it begs the question Why is it flaged?. Isn't this errormsg redundant, i.e. what purpose does it serve?

If the errormsg "touching-inner-rings" is irrelevant, how many other OSMI-*errormsg* are also irrelevant?

(29 Apr '12, 14:03) dcp
2

The OSM Inspector doesn't only show errors. It shows different "views" of the OSM data. It is your job to interpret those views and decide what to fix and how to fix it. The field called "errormsg" is a bit of a misnomer, just think of it as "description" or so.

(30 Apr '12, 10:52) Jochen Topf

1

In my opinion, dcp correctly concludes that a "touching inner rings" case is not an error (I would avoid "redundant", not enough strong). Even refering to "some programs ... might have a problem ..." is confusing if we accept the often used OSM statement "we are not tagging for renderers...". Most programs will today easily handle the referd "touching inner rings" case (and much more complicated that apears in OSM area classes).

answered 01 May '12, 11:26

sanser's gravatar image

sanser
695383955
accept rate: 5%

I like your point: "we are not tagging for the renderers".

I would still like to know how many other errormsg flags are also irrelevant as I have not only been falsely "correcting for OSMI" but I have also contacted others contributers citing OSMI and erroneously pointing out their errors.

This is not encouraging!

(03 May '12, 06:43) dcp

Source code available on GitHub .