Skip to main content
2 of 3
added 1 character in body
Val P
  • 3.9k
  • 1
  • 9
  • 34

Finding closest points on another polygon

I have three layers:

  1. polygons (having a unique id)
  2. stops (having the polygon id it is laying on) (point)
  3. possibilities (having the polygon id it is laying on) (point)

I now want to find the closest possibility-point of each stop-point, which lays on another polygon.

I could easily find the closest point overall, but how could I add the requirement that this point has a different polygon-id than the stop-point itself has?

Here is an example of what I have:

enter image description here

And what I would like to achieve:

enter image description here

I could also use street data from OSM (laying between the buildings) if that would help.

Preferably I would like to be able to integrate this process in a graphical model in QGIS 3.4. But if that's not possible, a different solution than processing tools (like plugins or virtual layers) would do it as well.

MrXsquared
  • 35.6k
  • 22
  • 71
  • 121