I am looking for the shortest distance between "n" points and lines. I've been searching (I'm new to Qgis) and I get the expression:
length( make_line ( $geometry, closest_point ( geometry ( get_feature_by_id ( 'Shape_1', array_to_string ( overlay_nearest ( 'ADAMO_11', $id ) ) ) ) , $geometry ) ) )
With the "geometry Generator" it only makes lines at the symbology level but I cannot process the data.
I have extracted the information from: QGIS 3.16.11 shortest distance between point and line via field calculator and overlay_nearest
I add two screenshots, in the second the value that appears is not in meters. (I checked it with the ruler)
The expression that you indicate in the comment returns values but they are not in meters. I put it in the screenshot of the question.