I have two layers:
nomen
: point layernomenclature
: polygon layer
In PostGIS, when adding a point, you must take the nomenclature
value by intersection with the polygons layer and insert it in the nomen
field.
In QGIS, in the attributes form of the point layer, I use the default expression for the nomen
field:
array_to_string(overlay_intersects('polygons', "nomenclature"))
It works as expected, but I need it to be a function of the PostGIS database.