I have two shape points as shown in image below.
- Point 1 represents the connectivity nodes (hub)
- Point 2 shows the address(spoke)
How to connect each hub (connectivity nodes) to nearest spoke(address) by a Virtual Layer approach? A hub can connect many nearest spokes at random distances say 50m.
The id,s in both point layers are combination of strings
and integers
as shown in image of question.For example the field " GlobalID" in both layers.
What I tried:
I achieve this by using MMQGIS as shown in image 2, but i am trying to do this with virtual layer approacch.
Practical example: Suppose an electrical pole (hub) is connecting many houses (spokes).