<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Nov 14, 2018 at 5:30 PM SelfishSeahorse <<a href="mailto:selfishseahorse@gmail.com">selfishseahorse@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">1. 'inner' roles (and thus 'outer' roles too) are still needed in case a country has enclaves.<br></blockquote><div><br></div><div>Even if a country has exclaves and/or has enclaves within it, you still don't need to have "inner" and "outer" roles at all in order to make sense of the (multi)polygon. They are there as a hint to fix hopelessly broken multipolygon relations, but if such a relation is not broken, the "inner" and "outer" roles are actually superfluous. For instance, the program osm2pgsql actually has a check function named "check_inner_outer_roles"[1] to identify relation member ways having the wrong roles in a type=multipolygon or type=boundary relation. It is able to do this check precisely because it is able to analyze a multipolygon relation and be able to infer the correct roles for itself.</div><div><br></div><div>We should be therefore able to repurpose the roles in a type=boundary relation to store information about claimed, "de facto", and "de jure" borders.<br></div><div><br></div><div> [1] <a href="https://github.com/openstreetmap/osm2pgsql/blob/93b73e5f5c3b20e80027ecf272f553d26f49f2e8/contrib/libosmium/osmium/area/detail/basic_assembler.hpp#L172">https://github.com/openstreetmap/osm2pgsql/blob/93b73e5f5c3b20e80027ecf272f553d26f49f2e8/contrib/libosmium/osmium/area/detail/basic_assembler.hpp#L172</a></div><div><br></div></div></div></div></div>