<p></p>
<h2 dir="auto">What version of osm2pgsql are you using?</h2>
<p dir="auto">1.9.2-29-g374eca48</p>
<h2 dir="auto">What did you do exactly?</h2>
<p dir="auto">I am generalizing water tables with themepark and osm2pgsql-gen</p>
<div class="highlight highlight-source-lua" dir="auto"><pre class="notranslate">osm2pgsql.<span class="pl-c1">run_gen</span>(<span class="pl-s"><span class="pl-pds">'</span>raster-union<span class="pl-pds">'</span></span>, {
schema <span class="pl-k">=</span> themepark.<span class="pl-smi">options</span>.<span class="pl-smi">schema</span>,
name <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>water_z12<span class="pl-pds">'</span></span>,
dest_table <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>water_z12<span class="pl-pds">'</span></span>,
src_table <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>water<span class="pl-pds">'</span></span>,
zoom <span class="pl-k">=</span> level
})
osm2pgsql.<span class="pl-c1">run_gen</span>(<span class="pl-s"><span class="pl-pds">'</span>raster-union<span class="pl-pds">'</span></span>, {
schema <span class="pl-k">=</span> themepark.<span class="pl-smi">options</span>.<span class="pl-smi">schema</span>,
name <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>water_z8<span class="pl-pds">'</span></span>,
dest_table <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>water_z8<span class="pl-pds">'</span></span>,
src_table <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>water<span class="pl-pds">'</span></span>,
zoom <span class="pl-k">=</span> level
})</pre></div>
<h2 dir="auto">What did you expect to happen?</h2>
<p dir="auto">I expected generalized tables that would be useful at z8 and z12.</p>
<h2 dir="auto">What did happen instead?</h2>
<p dir="auto">At z8, the water areas are "chunky" when using the z8 table<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1190866/271763845-cb40bc77-17f5-4782-9472-3cac31203ce5.png"><img src="https://user-images.githubusercontent.com/1190866/271763845-cb40bc77-17f5-4782-9472-3cac31203ce5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is rendered at 1 z8 tile = 512 device independent pixels</p>
<p dir="auto">It's not really any better at z7<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1190866/271763883-83b31a28-f4d8-41dc-91f6-4fc103fef8db.png"><img src="https://user-images.githubusercontent.com/1190866/271763883-83b31a28-f4d8-41dc-91f6-4fc103fef8db.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Loading it in QGIs shows large chunks of rivers missing</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1190866/271763971-1875ddeb-ba08-4d0b-90d5-ce57f975b57e.png"><img src="https://user-images.githubusercontent.com/1190866/271763971-1875ddeb-ba08-4d0b-90d5-ce57f975b57e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I found a smaller river and looked at at z12, and similar problems are observed but they're not as severe</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1190866/271764062-08587480-74c3-4f0c-9dd6-9f6c259ba620.png"><img src="https://user-images.githubusercontent.com/1190866/271764062-08587480-74c3-4f0c-9dd6-9f6c259ba620.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">What did you do to try analyzing the problem?</h2>
<p dir="auto">I could see needing to adjust the zoom levels where the generalized tables start to be used by one, because the defaults could have been set for 256px tiles. But I tried that by looking at z7, and it was still a problem.</p>
<p dir="auto">I tried a 25% buffer_size, and a 4096px image_extent. The latter helped slightly, but it was still a problem.</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/2087">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WVGBM3F54S3HDLFG3X47NTZANCNFSM6AAAAAA5NNKNQM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353SSTM5MFFBTMJX45IDX47NTZA5CNFSM6AAAAAA5NNKNQOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHE45IGU.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/2087</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/2087",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/issues/2087",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>