<div dir="ltr"><div dir="ltr">Hi Marco,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 20 dic 2020 alle ore 10:03 Marco Boeringa <<a href="mailto:marco@boeringa.demon.nl">marco@boeringa.demon.nl</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Reading through the PostGIS documentation, I noticed the <br>
"ST_ClusterDBSCAN" function takes a distance as one of the inputs. Now <br>
the docs suggest the current algorithm only takes in "geometry" type <br>
data. Is that true? Based on the distance input variable, it would seem <br>
logical to have a "geography" variant as well, even if that is a <br>
considerably slower variant considering the more complex distance <br>
calculation.<br></blockquote><div><br></div><div>Yes, ST_ClusterDBSCAN takes just the geometry type in input. This is because most of the algorithm</div><div>is implemented using utilities already existing in GEOS for planar geometries.</div><div><br></div><div>Adding the support for the geography type would mean to re-implement the algorithm specifically for</div><div>spherical objects, as you mentioned.</div><div><br></div><div>Regards,</div><div>Giuseppe.<br></div></div></div>