I have a polygon layer, I want to fill the fields automatically each creation of a polygon.
Knowing that there is a spatial relationship (intersection, contain …) between my polygons and other layers of point, the idea is to fill the fields instantaneously by the information from the point layers contained in the polygons.
Could someone help me on this subject ?
Setting up an action in layer properties seems possible, but how?
Best Answer
Please take a look at the
aggregate
function of the field-calculator.In the layer properties the tab
attribute form
(8th from the top) you may set standard/preset values for your fields, e.g. based on field calculator formulas.