Skip to main content
edited tags
Link
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404
Notice removed Canonical answer required by MrXsquared
Bounty Ended with Kadir Şahbaz's answer chosen by MrXsquared
added 1 character in body
Source Link
Val P
  • 3.9k
  • 1
  • 9
  • 34

I have three layers:

  1. polygons (having ana unique id)
  2. stops (having the polygon id it is laying on) (point)
  3. possibilitespossibilities (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 thatsthat's not possible, a different solution than processing tools (like plugins or virtual layers) would do it as well.

I have three layers:

  1. polygons (having an unique id)
  2. stops (having the polygon id it is laying on) (point)
  3. possibilites (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 thats not possible, a different solution than processing tools (like plugins or virtual layers) would do it as well.

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.

Notice added Canonical answer required by MrXsquared
Bounty Started worth 150 reputation by MrXsquared
Tweeted twitter.com/StackGIS/status/1263983159105945611
Source Link
MrXsquared
  • 35.6k
  • 22
  • 71
  • 121

Finding closest points on another polygon

I have three layers:

  1. polygons (having an unique id)
  2. stops (having the polygon id it is laying on) (point)
  3. possibilites (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 thats not possible, a different solution than processing tools (like plugins or virtual layers) would do it as well.