I have a number of polygons with an integer value in a field. I would like to create N number of centroid points for each polygon where N corresponds to the value in the polygon's field.
So sort of like Random Points in Polygon, but centroids instead of Random.
I've done it before by generating random points, adding the centroid X and Y as a attributes to the source polygon and then rejoining the points with the source polygon's fields with Join By Location. And then replacing the geometry in the random points with the source polygon's centroid X and Y.
But this feels suuuper clunky.
So is there some easy way to accomplish the same thing? Maybe some succinct SQL for Virtual Layers? Or clever Geometry Generator snippet for the polygon layer (generating new data is not necessary)?