<p>osm2pgsql is not building some multipolygons when using --proj 4326.</p>
<p>Have a look at this relation:<br>
<code>wget -O nrw.osm http://www.openstreetmap.org/api/0.6/relation/62761/full</code><br>
or its simiplied version (only have the size and faster to download):<br>
<code>wget -O nrw.osm https://clbin.com/nbVgx</code></p>
<p>I've imported it like this using the default.style with and without --multi-geometry using osm2pgsql <a href="https://github.com/openstreetmap/osm2pgsql/commit/c8265f809e3c809638040db750477ba2963cc0ee" class="commit-link"><tt>c8265f8</tt></a>:</p>
<pre><code>osm2pgsql --create --database testcase --proj 4326 nrw.osm
</code></pre>
<p>The resulting administrive area can't be found in planet_osm_polygon, it can be found splittet in more than 20 pices in planet_osm_line.</p>
<p>Import works as expected when using native mercator projection:</p>
<pre><code>osm2pgsql --create --database testcase nrw.osm
</code></pre>
<p>Simplified testcase (based on nrw.osm):</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/osm2pgsql/issues/514">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7gG3BFSpZlRs-LBDc6y-2IAOvCgZks5pOIakgaJpZM4GyMHv.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/514"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>