This module contains functions that perform clustering on geographies.
Takes a set of points and partition them into clusters using the k-mean. It uses the k-means algorithm. Returns an array of tuples with the cluster index for each of the input features and the input geometry.
ARRAY<GEOGRAPHY>points to be clustered.
NULLnumberOfClusters that will be generated. If
NULLthe default value
Math.sqrt(<NUMBER OF POINTS>/2)is used.
ARRAY<STRUCT<cluster INT64, geom GEOGRAPHY>>
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 960401.