I want to use the Field Calculator inside the Graphical Modeler to create a new column in an input vector layer (LAYER1
) using data in another layer (LAYER2
). LAYER2
is the output of another algorithm inside the model.
The formula is as follows:
attribute(get_feature("LAYER2", 'WKT', geom_to_wkt(start_point($geometry))) , 'NODEID')
Actually, I am trying to implement an algorithm similar to what's described in Getting points-touching-a-line attributes back to lines layer using QGIS?.
When used outside the model, it works perfectly.
When used inside the model, the column is always created with NULL values.
Any ideas on how to reference LAYER2
inside the Field Calculator for this to work?
attribute(get_feature())
formula.