Quantcast
Channel: Using filter expressions in QGIS calculator with overlay_nearest - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 3

Using filter expressions in QGIS calculator with overlay_nearest

$
0
0

I have a layer 'Points' and a layer 'Lines'.
Both layers contain an 'ID' attribute, which relate (but it's an m x n relation)

I'm trying to get the point position "along" a line, and I can do this with the field calculator in the 'Points' layer:

line_locate_point(overlay_nearest('Lines', $geometry)[0], $geometry)

But because there are overlapping lines, I need to use the "ID" attribute to limit the selection.

How can I add a filter expression to the overlay_nearest function saying something like Point.ID = Line.ID? My main issue is that I don't know how to differ the "current point" from the "line in the function" in the expression.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images