Skip to main content

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?

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.


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


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.

 


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.

 

 


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