Is it possible to automatically set attribute values for a layer based on proximity relationships to another layer in QGIS?
This is a more generic question with a variety of applications, so here is a concrete example: I have a road network (linestrings) with attributes (among others)
road_sgmnt_id and a point layer with building sites also with attributes
road_sgmnt_id (also among others). What I would like to do during digitizing a building site is to find the closest (proximity relationship) road segment, retrieve certain attribute values and insert them into the building site form as shown in the screenshot:
I must confess I am not quite experienced with user defined forms in QGIS (ui-files) but I think such form with some python logic defined behind it could do the trick.
Hint: Since the datasource is not necessarily a database, and if, the form could not be auto-filled this way during digitizing, a trigger function would only be a second option (if any).