Skip to main content
Question

Finding Nearest Neighbours with a Qualifier

  • December 6, 2013
  • 2 replies
  • 77 views

Forum|alt.badge.img
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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Evangelist
Forum|alt.badge.img+49
  • Evangelist
  • December 6, 2013
Group by on street id

Forum|alt.badge.img
  • Author
  • December 10, 2013
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?