Question

How to find multiple nearest neighbours

  • 10 August 2016
  • 5 replies
  • 67 views

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

Badge +16

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.

Badge +9

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

Userlevel 4
Badge +25
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.

 

Userlevel 4
Badge +25

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.

 

 

Userlevel 2
Badge +16

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.

Reply