In order to intersect a grid according to hundreds of communes, I used the graphical modeler in QGIS to automate the process.
I separated my district layer from the insee field to have as many layers as different districts: "separate the vector layer". Then I made an "intersection" of these communes in relation to a grid (mgrs grid).
But I get an error message when I launch my modeler on my intersection algorithm : 'Impossible to load the source layer for INPUT: \xxx not found Error while running Intersection'.
I think it's due to the fact that I can't save my interesected communes in a file directory but only in one file but I have several input files from my "split" algorithm.
Do you have a solution so that I have for each commune, their intersection with the grid ?
Here is a screenshot of my model (up to the error) and the parameters obtained in my intersection algorithm :
Parameters of the intersection algorithm :
Screenshot showing the grid (pink) and commune layers (yellow) :
I would have this automatically for each commune :