<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 7:02 AM Braune, Christopher <<a href="mailto:Christopher.Braune@lfu.brandenburg.de">Christopher.Braune@lfu.brandenburg.de</a>> wrote</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="DE"><div class="gmail-m_4146956320396146001WordSection1">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The target is the smallest geometry that contains all single geometries. For example, three points creates a triangle-polygon.</span></p></div></div></blockquote><div><br></div><div>Do you mean you want the convex hull of the grouped geometries?   If so, you could use ST_ConvexHull.  It's not an aggregate function (which it should be), but you can use ST_Collect to aggregate the geometries to run it on.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="DE"><div class="gmail-m_4146956320396146001WordSection1"><p class="MsoNormal"><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <br><u></u></span></p>
</div></div></blockquote></div></div>