<div dir="ltr"><div dir="ltr">Laurent and list,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 13, 2022 at 6:29 AM celati Laurent via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Good morning,<div>With qgis 3.28 I have a point layer (boreholes) . And I have a polygonal layer (departments/districts). My goal would be to via Qgis (right click boreholes point layer -> attributes form) to automatically fill the "department" field of the boreholes layer. The filling would be done via spatial intersection. The field of the departments table that I would like to retrieve is called "nom_dep". I am attaching a screenshot of my settings.</div><div><br></div></div></blockquote><div>Not to dispute this approach, but why not use</div><div><br></div><div style="margin-left:40px">Vector > Geoprocessing Tools > Intersection</div><div><br></div><div>or</div><div><br></div><div style="margin-left:40px">Vector > Data Management Tools > Join Attributes by Location</div><div><br></div><div>to put the polygon department attribute on the points?<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>