ee.FeatureCollection.cluster

Clusters each feature in a collection, adding a new column to each feature containing the cluster number to which it has been assigned.

UsageReturns
FeatureCollection.cluster(clusterer, outputName)FeatureCollection
ArgumentTypeDetails
this: featuresFeatureCollection

The collection of features to cluster. Each feature must contain all the properties in the clusterer's schema.

clustererClusterer

The clusterer to use.

outputNameString, default: "cluster"

The name of the output property to be added.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!