<div dir="ltr"><div dir="ltr" style="font-size:12.8px">Darn, looks like a bug.  If you could create at ticket at <a href="https://trac.osgeo.org/postgis/" target="_blank">https://trac.osgeo.org/postgis/</a> it would be much appreciated.  In the meantime, calling<div><br></div><div>SELECT ST_ClusterWithin(ST_Accum(geom), 50) FROM winkels<br></div><div><br></div><div>should bypass the problem.</div><div><br></div><div>Thanks,</div><div>Dan</div></div><div class="" style="font-size:12.8px"></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 17, 2016 at 11:09 AM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Feb 17, 2016 at 01:44:54PM +0100, Ronnie Lassche wrote:<br>
> I’m trying to use the new st_clusterwithin function, but it keeps failing.<br>
><br>
> I’ve tried to cluster 20 points with the following query.<br>
><br>
> SELECT ST_ClusterWithin(geom, 50) FROM winkels<br>
><br>
> Most of the times I get the message<br>
><br>
> “ERROR: Tolerance not defined<br>
><br>
> A few times it did work and gave me a result, but trying again will lead to<br>
> the same error.<br>
><br>
> I’m working with postgis 2.2.2dev (but also tried it with 2.2.0).<br>
<br>
Can you reproduce the problem on a new database ?<br>
If so, what's the output of SELECT postgis_full_version() on that<br>
new database ?<br>
<br>
--strk;<br>
<br>
</blockquote></div><br></div>