Question

Finding Nearest Neighbours with a Qualifier

  • 6 December 2013
  • 2 replies
  • 1 view

Badge
I have a set of Addresses (points) and a set of Streets (lines).

 

 

I would like to calculate the point on the street line which is closest to each of my addresses.

 

 

NeighbourFinder looks like a good start.

 

 

However - each Address already knows the UniqueID of the Street it belongs to and so I dont want to find the nearest point on any Street, I want to find the nearest point on Street where Address attribute StreetID = Street Line attribute StreetID. This is most important close to Street junctions where more than one Street could easily fall within the search radius.

 

 

In typing this I think I see how to do it ... using my Streets as the Base and Addresses as Candidates ... generating lists then exploding the lists, comparing the attributes and only keeping the ones where StreetID matches. But you might know a more elegant way as I wanted to come at this from the point of view of the Address rather than the Street.

 

 

cheers

 

 

IanM

2 replies

Badge +10
Group by on street id
Badge
Thanks.

 

 

Does using Group By expect that (in this case) there is an attribute called StreetID on the BASE features and the CANDIDATE features, with the same spelling?

Reply