<div dir="ltr">Hello,<div><br></div><div>I am looking for a way to describe a 3D feature that has only partial geometric coverage with a contiguous geometry. It seemed to me that ST_ConvexHull could be helpful there. But the results are not as expected. So I tried a simple test query to get the convex hull of the eight corners of a cube. The expected result would be a geometry describing the faces of the cube but instead I get only the bottom face:</div><div><br></div><div><u>query:</u></div><div><br></div><div><div>select st_astext(st_convexhull(st_geomfromtext(</div><div>'MULTIPOINTZ(</div><div>0 0 0</div><div>,1 0 0</div><div>,1 1 0</div><div>,0 1 0</div><div>,0 1 1</div><div>,1 1 1</div><div>,1 0 1</div><div>,0 0 1</div><div>)'</div><div>)));</div><div><br></div><div><u>result:</u></div><div><u><br></u></div><div>POLYGON Z ((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0))</div></div><div><br></div><div>This is with PostGIS 2.2.1. </div><div><br></div><div>The current description of ST_ConvexHull reads "The convex hull of a geometry represents the minimum convex geometry that encloses all geometries within the set". It also says "This function supports 3d". The test result seems to contradict those statements. </div><div><br></div><div>So is ST_ConvexHull operating as expected? If it is, could there be another way to get the desired result in PostGIS?</div><div><br></div><div>Regards,</div><div>Frans</div></div>