<html><head></head><body>+1 for consistency<br>
MP would be easier to learn from example if a single method 'works'.<br>
Yves<br><br><div class="gmail_quote">On 13 juin 2014 01:25:42 UTC+02:00, Paul Norman <penorman@mac.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Osm2pgsql currently tries *very* hard to turn multipolygon relations into<br />geometries. It currently detects two types of MP relations, new-style and<br />old-style. A new-style MP has tags on the relation while an old-style MP<br />only has type=multipolygon on the relation and relies on the ways for <br />the tags.<br /><br />It then tries to deal with odd tagging in various ways. MP handling is one<br />of the biggest sources of osm2pgsql bug reports[1] and a big time-sink.<br /><br />One of the bigger issues is moving tags from ways to MPs that are falsely<br />detected as old-style. This is an attempt to interpret flawed tagging.<br /><br />I think we need to move to a more strict parsing of MPs, accepting only<br />new-style MPs and old-style MPs where all outers have identical <br />non-deleted[2]<br />tags and the relation itself has no non-deleted tags.<br /><br />Osm2pgsql is not just a consumer of data, it is one of the main feedback<br />tools, so
it is strongly integrated into the feedback cycle, so if <br />osm2pgsql<br />doesn't process a multipolygon, a mapper will likely correct the tagging. By<br />doing this, it will make it easier for those interpreting raw OSM data.<br /><br />To support this, I looked for some numbers. Using a shortened deleted tags<br />list, there are 1 million new-style and 261k old-style MPs. Of the <br />old-style,<br />256k have a member with role outer. 251k of these have entirely consistent<br />tags on outers, while 2.3k have two sets of tags among the ways. About 180<br />have three or more.[3] An old-style MP without entirely consistent tags on<br />outers is ambiguous and in error.<br /><br />[1]: <br /><a href="https://github.com/openstreetmap/osm2pgsql/search?q=multipolygon&type=Issues">https://github.com/openstreetmap/osm2pgsql/search?q=multipolygon&type=Issues</a><br />[2]: A deleted tag is one such as source that osm2pgsql is dropping<br />[3]: <a
href="https://gist.github.com/pnorman/ebd41f5a1759916a48b5">https://gist.github.com/pnorman/ebd41f5a1759916a48b5</a><br /><br /><hr /><br />dev mailing list<br />dev@openstreetmap.org<br /><a href="https://lists.openstreetmap.org/listinfo/dev">https://lists.openstreetmap.org/listinfo/dev</a><br /></pre></blockquote></div><br>
-- <br>
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.</body></html>