This is this is a follow up to this question
I have in QGIS ver 3.22 two layers named:
- source_point_layer
- target_polygon_layer
I want to automatically point with a line from the source_point_layer to the center of two polygons that are no closer than 3000m and no further than 10000m with a value less than 7 on the target_polygon_layer How to define min and max distance range?
Expression on "source_point_layer"
collect_geometries (
array_foreach (
overlay_nearest (
'target_polygon_layer',
centroid($geometry),
filter:="value"<'7',
limit:=2,
max_distance:=10000 -- how to define min_distance?
),
make_line (
$geometry,
@element
)
)
)