This question is continuing the discussion from here.
Since I want to adopt another approach and see if it is feasible since I tried different approaches (K-means, Convex hulls, etc. and they didn't work as expected since the points are very close together (urban areas)
I have a layer with points/centroids representing the different buildings in the area. I want to group them in blocks/grids each having x number of points (e.g., 30 or 50 points etc.).
I am using the 'Add line feature' in another layer and I am drawing manually the blocks while counting also manually the points. Is there a way to count automatically/dynamically the points after drawing each block/grid?
I know that there is 'Count points in polygons' in vector analysis tools but I am using lines and I don’t want to add an extra step of converting the lines into polygons, then count the points in the polygons and if there is an error, I have to delete the polygons and the lines and then do it all over again.
Is it possible to use a script or something?
Split with lines
orPolygonize
to divide the original polygon into smaller ones and each small polygon has x number of buildings/points. If it can also be done with polygons, I have no complaints!