<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>