<div dir="ltr">Hello,<div><br></div><div style>I've got a question about using ST_Collect.</div><div style><br></div><div style>I have one table with hundrets of thousands of points. Within this table I want to collect the points that are within a 500 meter radius and calculate a convex hull around them.</div>
<div style><br></div><div style>Since the ST_DWithin needs (geom, geom, distance) and I only have one table with points, do I first have to perform a self join to identify the points within 500 meters and then a ST_Collect to group these points? Or can I somehow do it without joining the one table with itself?</div>
<div style><br></div><div style>And can I use the ST_DWithin inside the ST_Collect? Like ST_Collect(ST_DWithing(geom,geom,distance))?</div><div style><br></div><div style>Thanks for your help!</div><div style>--</div><div style>
Carsten</div></div>