<p></p>
<h2 dir="auto">What version of osm2pgsql are you using?</h2>
<pre class="notranslate"><code class="notranslate">osm2pgsql version 1.10.0
Build: RelWithDebInfo
Compiled using the following library versions:
Libosmium 2.20.0
Proj [API 6] 8.2.1
Lua 5.3.6
</code></pre>
<h2 dir="auto">What operating system and PostgreSQL/PostGIS version are you using?</h2>
<p dir="auto">Ubuntu 22.04.3 LTS</p>
<h2 dir="auto">Tell us something about your system</h2>
<p dir="auto">32GB Ram, 16 Cores</p>
<h2 dir="auto">What did you do exactly?</h2>
<p dir="auto">Imported .pbf file:</p>
<p dir="auto"><code class="notranslate">osm2pgsql --slim --drop -C 8192 -c -S default.style -l -d $DBNAME -U real -H localhost -W germany-latest.osm.pbf</code></p>
<h2 dir="auto">What did you expect to happen?</h2>
<p dir="auto">Closed lines with <code class="notranslate">highway='rest_area'</code> should appear in <code class="notranslate">planet_osm_polygon</code>.</p>
<h2 dir="auto">What did happen instead?</h2>
<p dir="auto">Closed lines with <code class="notranslate">highway='rest_area'</code> appeared in <code class="notranslate">planet_osm_line</code> and some in <code class="notranslate">planet_osm_polygon</code>.</p>
<h2 dir="auto">What did you do to try analyzing the problem?</h2>
<p dir="auto">Tried osm2pgsql version 1.6 and 1.10.0.</p>
<p dir="auto">The difference seem to be that the entries in <code class="notranslate">planet_osm_polygon</code> have <code class="notranslate">area='yes'</code> set, too.</p>
<p dir="auto">The problem is that setting <code class="notranslate">area='yes'</code> is unnecessary because <code class="notranslate">highway='rest_area'</code> already implicitly marks an area. josm gives a warning if you want wo set <code class="notranslate">area='yes'</code> together with <code class="notranslate">highway='rest_area'</code>.</p>
<p dir="auto">=> Treat all closed lines with <code class="notranslate">highway='rest_area'</code> as areas independent if <code class="notranslate">area='yes'</code> is set or not.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/osm2pgsql-dev/osm2pgsql/issues/2116">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353RM6VLNYWRSCGHVSX3YK4OQVAVCNFSM6AAAAABBA6P6EOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TIOBWGMZTCNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353SMM5D4ERK3IFSJCCLYK4OQVA5CNFSM6AAAAABBA6P6EOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHU6VZ2M.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><osm2pgsql-dev/osm2pgsql/issues/2116</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/osm2pgsql-dev/osm2pgsql/issues/2116",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/issues/2116",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>