Skip to main content
added 4 characters in body
Source Link
Rii Pii
  • 486
  • 2
  • 15

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. Value relation should activate when I select a singel point at source_p layer ... current_value selected I tried to filter expression, but something is wrong?

current_value(overlay_nearest(layer:='target_p', expression:="fid", limit:=3, max_distance:=15000))

enter image description here

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. Value relation should activate when I select a singel point at source_p layer ... current_value selected I tried to filter expression, but something is wrong?

current_value(overlay_nearest(layer:='target_p', limit:=3, max_distance:=15000))

enter image description here

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. Value relation should activate when I select a singel point at source_p layer ... current_value selected I tried to filter expression, but something is wrong?

overlay_nearest(layer:='target_p', expression:="fid", limit:=3, max_distance:=15000)

enter image description here

Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Notice added Authoritative reference needed by Rii Pii
Bounty Started worth 50 reputation by Rii Pii
added 137 characters in body
Source Link
Rii Pii
  • 486
  • 2
  • 15

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. Value relation should activate when I select a singel point at source_p layer ... current_value selected I tried to filter expression, but something is wrong?

current_value(overlay_nearest('target_p', $geonetrylayer:='target_p', limit:=3, max_distance:=15000))

enter image description here

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. I tried to filter expression, but something is wrong?

overlay_nearest('target_p', $geonetry, limit:=3)

enter image description here

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. Value relation should activate when I select a singel point at source_p layer ... current_value selected I tried to filter expression, but something is wrong?

current_value(overlay_nearest(layer:='target_p', limit:=3, max_distance:=15000))

enter image description here

Source Link
Rii Pii
  • 486
  • 2
  • 15

QGIS value relation dropdown filter by overlay_nearest

I have in QGIS 3.28.8 two point layers: source_p and target_p I want in source_p layer to create a dropdown to "TargetFID" field with Value Relation to target_p layer with only 3 nearest points matches on target_p layer. I tried to filter expression, but something is wrong?

overlay_nearest('target_p', $geonetry, limit:=3)

enter image description here