I am trying to create an autofill format on QGIS, based on an atlas.
There will be some dynamic text fields and some boxes which should be checked with an "x" in case the atlas geometry intersects a group of other geometries. Something like "IF $atlasgeometry intersects layer X OR Y OR.. OR Z, THEN check the box". Those layers are grouped, so it would be nice if i could call them all together in the script. The point is that i cannot find a single tutorial explaining how i should call map layers within the formulas, all the examples i see are about single geometries, and i have hundreds of them, so that would not work.
Could anyone explain me how that should work? And how the formula stucture should be?
Let me try to explain:
- We have a map layer on which there are some objects stored: they describe the geographic positions of some buildings. Each geometry is a building. Let's call the layer "Projects"
- We have some other layers containing the perimeters (=polygons) of the areas where some kind of jobs cannot be done or must have some features. Let's call them "Restraints A" "Restraints B" ...
- I need a script which says "IF "projects" intersects Restraints A, then write X in a certain text box.
The goal is creating a format which describes in a single sheet all the restraints i must respect in the definition of the project.