[OSM-dev] Polygon inner/outer relation in osm file

patrick keshishian pkeshish at gmail.com
Tue Aug 23 07:39:14 UTC 2016


Greetings,

What is the mechanism used, while processing "relation"-s, in
matching "inner" and "outer"-s of polygons?

Examining some example data extracts (from geofabrik.de) it looked
as if an "outer" is followed by its "inner"-s (if any).

But soon I came across ones like this:

	<relation id="3215648" version="4" timestamp="2013-09-23T03:40:40Z"
changeset="17984334" uid="574654" user="Tom_Holland">
		<member type="way" ref="238816359" role="inner"/>
		<member type="way" ref="238816361" role="inner"/>
		<member type="way" ref="238816360" role="inner"/>
		<member type="way" ref="238531062" role="inner"/>
		<member type="way" ref="238531051" role="outer"/>
		<member type="way" ref="238531048" role="outer"/>
		<member type="way" ref="238531066" role="inner"/>
		<tag k="type" v="multipolygon"/>
	</relation>


I am really hoping to be missing something obvious, and that the
import (or render) software does not examine each "inner" against
each "outer" to determine the association.

Also hoping this is the appropriate list for this sort of questions.

--patrick

[0] http://www.openstreetmap.org/relation/3215648#map=16/19.9202/-155.8783



More information about the dev mailing list