Question

Measuring distance between polygons

  • 7 May 2024
  • 1 reply
  • 20 views

Badge

My dataset contains some river basins polygons, with 1 forestry polygon falling into each one. Each river basin also contains multiple habitat polygons. I am trying to measure the distance (edge to edge) between the forestry polygon and each of the habitat polygons falling within the same river basin. I’ve done some spatial joins to associate each forestry polygon and each habitat polygon to it’s respective river basin, but I’m unsure how to measure the distances between them, while grouping by river_basin_id. Any help would be greatly appreciated.


1 reply

Userlevel 5
Badge +36

You may be looking for the NeighborFinder.
Add the Habitat polygons to the Base input, and the Forest polygons to the Candidate input.
In the Neighborfinder group by your Basin_ID
The NeighborFinder returns the shortest distance (and other attributes).

 

Reply