I'm working with QGIS 3.12 and have two large point shapefiles (buildings/barns and wetlands) that I want to connect with lines via the geometry generator. I've found a function called get_feature() that will connect the points in the correct way but the get_feature() function only selects the first in a one to many relationship.
See example screenshot. The blue wetland dot is only connecting to one of the four building dots.
The script I have currently is:
make_line( geometry(get_feature('barns', 'wID', '3809' )) , geometry(get_feature('wetland_matrix', 'InputID', '3809' )) )
I need to connect all four, not just the one!