[postgis-users] st_clusterwithin fails

Daniel Baston dbaston at gmail.com
Wed Feb 17 09:54:55 PST 2016


Darn, looks like a bug.  If you could create at ticket at
https://trac.osgeo.org/postgis/ it would be much appreciated.  In the
meantime, calling

SELECT ST_ClusterWithin(ST_Accum(geom), 50) FROM winkels

should bypass the problem.

Thanks,
Dan

On Wed, Feb 17, 2016 at 11:09 AM, Sandro Santilli <strk at keybit.net> wrote:

> On Wed, Feb 17, 2016 at 01:44:54PM +0100, Ronnie Lassche wrote:
> > I’m trying to use the new st_clusterwithin function, but it keeps
> failing.
> >
> > I’ve tried to cluster 20 points with the following query.
> >
> > SELECT ST_ClusterWithin(geom, 50) FROM winkels
> >
> > Most of the times I get the message
> >
> > “ERROR: Tolerance not defined
> >
> > A few times it did work and gave me a result, but trying again will lead
> to
> > the same error.
> >
> > I’m working with postgis 2.2.2dev (but also tried it with 2.2.0).
>
> Can you reproduce the problem on a new database ?
> If so, what's the output of SELECT postgis_full_version() on that
> new database ?
>
> --strk;
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20160217/61c2b903/attachment.html>


More information about the postgis-users mailing list