Commit 8bd8759e authored by Darafei Praliaskouski's avatar Darafei Praliaskouski

Fix KMeans initialization issue that lost clusters sometimes.

Closes #3965
Closes https://github.com/postgis/postgis/pull/179


git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16213 b70326c6-7e19-0410-871a-916f4a2858ee
parent d591bc41
Pipeline #15705188 passed with stage
in 45 minutes and 39 seconds
PostGIS 2.4.3
2017/xx/xx
2018/xx/xx
* Bug fixes *
- #3713, Support encodings that happen to output a '\' character
- #3827, Set configure default to not do interrupt testing,
was causing false negatives for many people
was causing false negatives for many people
- #3930, Minimum bounding circle issues on 32-bit platforms
- #3965, ST_ClusterKMeans used to lose some clusters on initialization
(Darafei Praliaskouski)
* Enhancements *
- #3944, Update to EPSG register v9.2 (Even Rouault)
......
......@@ -201,6 +201,7 @@ lwgeom_cluster_2d_kmeans(const LWGEOM **geoms, int ngeoms, int k)
if (seen[j] == closest)
{
closest = (closest + 1) % config.num_objs;
j = 0;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment