<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hi,</div><div class="gmail_default" style="font-family:monospace"><span lang="en"><span><span>Try to reclassify the raster first so that all "non NA" values are equal (e.g. 1), then do ST_DumpAsPolygons<code>.</code></span></span></span></div><div class="gmail_default" style="font-family:monospace"><span lang="en"><span><span><code></code></span></span></span></div><div class="gmail_default" style="font-family:monospace"><span lang="en"><span><span><span lang="en"><span><span></span></span></span></span></span></span></div><div class="gmail_default" style="font-family:monospace"><span lang="en"><span><span>Regards,</span></span></span></div><div class="gmail_default" style="font-family:monospace"><span lang="en"><span><span>Marcin<br></span></span></span> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pon., 10 sty 2022 o 21:27 Richard Huesken <<a href="mailto:richard.huesken@gmail.com" target="_blank">richard.huesken@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">hi,<div><br></div><div>I'm using postgis 3.1 and I'm looking for the best way to obtain the exact hull of a raster (excluding the nodata points). The st_minconvexhull uses the MBR of the raster coverage, and is therefore quite fast. The result is however not as accurate as I require.</div><div><br></div><div>I constructed some sql that uses st_pixelaspolygons and then does a st_union. However, My typical raster has 256x256 points, and with several 100s of rasters this is quite slow.</div><div><br></div><div>Are there more clever (and faster!) ways to get the exact hull of a raster?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Richard.</div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>