Skip to main content
added 2 characters in body
Source Link
Bera
  • 77.7k
  • 14
  • 78
  • 187

You could try using offset expressions. This will offset points in layer B with a random distance of +-300 m if there is a point in layer A within 10 m of it:

case 
when overlay_nearest(layer:='A', limit:=1, max_distance:=10) then array(rand(-300,300), rand(-300,300)) else array(0, 0) end

enter image description here

You could try using offset expressions. This will offset points in layer B with a random distance of +-300 m if there is a point in layer A within 10 m of it:

case 
when overlay_nearest(layer:='A',limit:=1, max_distance:=10) then array(rand(-300,300), rand(-300,300)) else array(0,0) end

enter image description here

You could try using offset expressions. This will offset points in layer B with a random distance of +-300 m if there is a point in layer A within 10 m of it:

case 
when overlay_nearest(layer:='A', limit:=1, max_distance:=10) then array(rand(-300,300), rand(-300,300)) else array(0, 0) end

enter image description here

Source Link
Bera
  • 77.7k
  • 14
  • 78
  • 187

You could try using offset expressions. This will offset points in layer B with a random distance of +-300 m if there is a point in layer A within 10 m of it:

case 
when overlay_nearest(layer:='A',limit:=1, max_distance:=10) then array(rand(-300,300), rand(-300,300)) else array(0,0) end

enter image description here