Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow aggregating properties in turf-clusters-dbscan #2777

Open
stevage opened this issue Dec 18, 2024 · 0 comments
Open

Allow aggregating properties in turf-clusters-dbscan #2777

stevage opened this issue Dec 18, 2024 · 0 comments

Comments

@stevage
Copy link
Collaborator

stevage commented Dec 18, 2024

clustersDbscan() does not allow any way to determine which source points have been grouped in each cluster, or a way to aggregate properties in that cluster.

It would be helpful if one or both of these options were supported:

  • a clusterIds option, which if true would include a clusterIds property, an array of ids of each feature in the cluster.
  • an aggregateFunc option, a function which would be called with a feature being clustered, and the cluster it is being grouped into.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant