I have a few hundreds of points and I'm trying to:
1) 'Cluster' them spatially (max distance 25cm) and based on one common attribute while the number of neighbors can vary from 0 to 5
2) Calculate average position for each 'cluster' of points and replace their geometry so that all aggregated points have the same position (of course keeping the original attributes).
I would be grateful for a hint, I've been trying different transformers and I can't find a solution.