[postgis-tickets] r14673 - #3465, ST_Kmeans
Sandro Santilli
strk at keybit.net
Wed Feb 24 02:51:23 PST 2016
On Wed, Feb 24, 2016 at 02:44:12AM -0800, Paul Ramsey wrote:
> Author: pramsey
> Date: 2016-02-24 02:44:11 -0800 (Wed, 24 Feb 2016)
> New Revision: 14673
> +static void test_kmeans(void)
...
> + r = lwgeom_cluster_2d_kmeans((const LWGEOM **)geoms, N, num_clusters);
> +
> + // for (i = 0; i < k; i++)
> + // {
> + // printf("[%d] %s\n", r[i], lwgeom_to_ewkt(geoms[i]));
> + // }
> +
> + /* Clean up */
> + lwfree(r);
> + for (i = 0; i < k; i++)
> + lwgeom_free(geoms[i]);
> + lwfree(geoms);
> +
> + return;
> +}
No result checking here ?
--strk;
More information about the postgis-tickets
mailing list