<p></p>
<p dir="auto">I found more out about it. But first a correction of the output of osm2pgsql which got lost during copy and past:</p>
<p dir="auto"><a href="https://github.com/osm2pgsql-dev/osm2pgsql/assets/10726570/efd3fdbd-572e-4c88-9da9-d84aacb7ede9">grafik.png (view on web)</a></p>
<p dir="auto">My first workaround was:</p>
<ol dir="auto">
<li>Clip and convert the PBF to OSM for my bounding box with osmium</li>
<li>Import the OSM file with osm2pgsql</li>
</ol>
<p dir="auto">What was also working:</p>
<ol dir="auto">
<li>Clip to my bounding box and save as PBF</li>
<li>Import with osm2pgsql</li>
</ol>
<p dir="auto">So I was converting the whole file and searched for 'green:white:green:' and found this relation <a href="https://www.openstreetmap.org/relation/1830701#map=14/50.1851/12.2991" rel="nofollow">https://www.openstreetmap.org/relation/1830701#map=14/50.1851/12.2991</a>. That is far away from my boundingbox:</p>
<p dir="auto"><code class="notranslate">osm2pgsql -O flex -S demo.lua -b 13.662356,50.792525,13.888777,50.89853 sachsen-latest.osm.pbf</code></p>
<p dir="auto">The error happens, if I convert the complete file sachsen-latest.osm.pbf to OSM-XML.</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/2128#issuecomment-1921274692">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WL6G362OV7ZB2HV6LYROGVHAVCNFSM6AAAAABCUQ5GWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRGI3TINRZGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353X27W5FUY3MIN4IU3LYROGVHA5CNFSM6AAAAABCUQ5GWCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTSQRJUI.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/2128/1921274692</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/2128#issuecomment-1921274692",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/issues/2128#issuecomment-1921274692",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>