Hey QGIS gurus! I'm trying to figure out this puzzle that's been bugging me, and I could really use some help.
I've got two lines that are almost parallel, but the distance between them changes slightly.
What I need to do is identify and generate a point exactly where the distance between these two lines is the absolute shortest. The tricky part is, both lines live in the same layer.
I tried using overlay_nearest(@layer, max_distance:=1), but that just selected both lines, which isn't quite what I need. I also thought about the "Extract Vertices" algorithm, but no luck there either.
So, how can I specify the point marking the shortest distance between two (or more) lines in QGIS, assuming they always comprise the same layer? Any clever tricks or tools I'm missing?
I've got two lines that are almost parallel, but the distance between them changes slightly.
What I need to do is identify and generate a point exactly where the distance between these two lines is the absolute shortest. The tricky part is, both lines live in the same layer.
I tried using overlay_nearest(@layer, max_distance:=1), but that just selected both lines, which isn't quite what I need. I also thought about the "Extract Vertices" algorithm, but no luck there either.
So, how can I specify the point marking the shortest distance between two (or more) lines in QGIS, assuming they always comprise the same layer? Any clever tricks or tools I'm missing?