I have a following problem: I have a layer with numerous polygons inside (Over 400). I need to generate grids inside every polygon. When using the Grid process over a layer, the generated grid covers the whole area of the layer. This is not what I want, as I need the grid in the polygon to be centered in this polygon. Now, although many processes do have an option to iterate same process through all features, the grid making process does not have it. So Im wondering if there is a workaround as I want to implement that gridding step into a more complex model for a survey design.
This is what I get when I run "grid" over a layer. You can see that the grids are off in the individual polygons.
This is how I would want the grids to be created in each feature
A manual workaround for now is to run "Collect Geometries" process, which creates a separate layer for each polygon of my layer which is several hundred layers with the same name. And then I run the grid process, manually changing the extent from layer to layer. You can imagine, this is a very dirty work, leaving a huge data mess. I was looking into geometry generator options but I´m struggling to find a proper guide/course/tutorial for expressions that would allow me use this option extensively, so im stuck. Used QGIS 3.18 and 3.28 to test.
Any ideas are welcome!