<div dir="ltr"><div>Paul Norman wrote <a href="https://github.com/pnorman/osmborder">OSMBorder</a> about a year ago to help with the border drawing. It generates a pgsql table with line strings (not polygons), each way having the lowest value for the "admin level". So if a way belongs to both a country and a city border, the table will have just one way instance, with the lowest admin_level of the two usages. Also, the polygon is not required to be closed, so broken relations continue to be drawn properly for most of the map.<br><br></div>P.S. I also think that duplicating information like admin_level inside a way and in a relation is a bad practice. I think it came about due to the limitations in the viewing software, and should be solved with proper tools (web site, josm, iD, etc), rather than having dups that often go out of sync.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 12, 2018 at 9:52 AM, Dave F <span dir="ltr"><<a href="mailto:davefoxfac63@btinternet.com" target="_blank">davefoxfac63@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Yes, but again, irrelevant to this thread.<div><div class="h5"><br>
<br>
<div class="m_-1509034126564557201moz-cite-prefix">On 12/03/2018 13:44, Jo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Except of course, when the boundary is disputed, then there
might be overlap and possibly even holes of no man's land?<br>
<br>
</div>
Polyglot<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-12 13:41 GMT+01:00 Dave F <span dir="ltr"><<a href="mailto:davefoxfac63@btinternet.com" target="_blank">davefoxfac63@btinternet.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, I
understand what you're trying to highlight, but don't see it
as relevant to this thread.<br>
But anyway, the "boundary between two countries" can be
distinguished as they'll have two relations with boundary
data whereas "the high seas" boundary will only have one.<br>
<br>
DaveF.<span class="m_-1509034126564557201im m_-1509034126564557201HOEnZb"><br>
<br>
On 12/03/2018 00:17, Christoph Hormann wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Monday 12 March 2018, Dave F wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and it would not distinguish between the outer
boundaries (towards<br>
the high seas)<br>
and the boundaries between two countries.<br>
</blockquote>
Unsure what you mean. Could you elaborate, Example?<br>
<br>
</blockquote>
Sure:<br>
<br>
<a href="https://www.openstreetmap.org/way/96104334" rel="noreferrer" target="_blank">https://www.openstreetmap.org/<wbr>way/96104334</a><br>
<br>
is an outer maritime boundary at 12 mile distance from
the baseline<br>
separating the territorial waters from the high seas.<br>
<br>
OTOH<br>
<br>
<a href="https://www.openstreetmap.org/way/54749533" rel="noreferrer" target="_blank">https://www.openstreetmap.org/<wbr>way/54749533</a><br>
<br>
is a maritime boundary between two countries.<br>
<br>
You might say this difference is not of practical
importance for data<br>
users but there are for example many maps which
generally do not show<br>
the first type of boundary but which do show (at least
partly) the<br>
second type of boundary. Like this:<br>
<br>
<a href="http://legacy.lib.utexas.edu/maps/cia16/denmark_sm_2016.gif" rel="noreferrer" target="_blank">http://legacy.lib.utexas.edu/m<wbr>aps/cia16/denmark_sm_2016.gif</a><br>
<br>
You can of course determine this difference from the
spatial<br>
relationship of the boundary relations.<br>
<br>
</blockquote>
<br>
<br>
</span>
<div class="m_-1509034126564557201HOEnZb">
<div class="m_-1509034126564557201h5">
______________________________<wbr>_________________<br>
Tagging mailing list<br>
<a href="mailto:Tagging@openstreetmap.org" target="_blank">Tagging@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tagging" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/tagging</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="m_-1509034126564557201mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Tagging mailing list
<a class="m_-1509034126564557201moz-txt-link-abbreviated" href="mailto:Tagging@openstreetmap.org" target="_blank">Tagging@openstreetmap.org</a>
<a class="m_-1509034126564557201moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/tagging" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/tagging</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>______________________________<wbr>_________________<br>
Tagging mailing list<br>
<a href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tagging" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/tagging</a><br>
<br></blockquote></div><br></div>