Skip to main content
Question

How to find multiple nearest neighbours


Hi, We're able to find one nearest neighbour, however we are unable to return multiple nearest neighbours. We have tried removing the value of the nearest neighbours to find, and adding a value in the Close Candidate List Name parameter, however this has not worked. Any suggestions?

5 replies

itay
Supporter
Forum|alt.badge.img+16
  • Supporter
  • August 10, 2016

Creating the list is the way to go, can you specify how this didnt work?

Also make sure you have set the number to find to more than 1.


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • August 10, 2016

Maybe you need to extend the distance of your search??


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • August 10, 2016
As @itay says below, can you tell us how the Close Candidate list didn't work. If you aren't familiar with lists it might be confusing. You need to query a feature in the Data Inspector (the Table View isn't enough) in order to see list attributes. It should give you a list of the neighbors starting with the nearest first I believe. To use a list in Workbench use the ListExploder or try the ListConcatenator. It depends on what you want to do and how you want the multiple neighbors presented.

 


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • August 10, 2016
ciarab wrote:

Maybe you need to extend the distance of your search??

Yes! Especially check the source data to make sure the units you are using in that parameter are correct for the dataset's coordinate system units. Or leave that field empty and just specify the number of neighbors to find.

 

 


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • August 10, 2016

Maybe off-topic and a completely different approach:

But if you have 1 base object and want to find all candidate objects within a given distance you can use the Bufferer to create a search area and use the SpatialFilter to find all objects in your search area.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings