Skip to main content
Solved

Associate point data within specified attribute group

  • April 28, 2015
  • 3 replies
  • 18 views

I am trying to take a point feature class and find the nearest neighbor from another point feature class but keep it within a certain group. I thought the group by feature would be all I required inside the neighborfinder but when I use this field, my inputs all come out the "unmatched base" port.

 

 

My inputs are zipcodes as point feature class (base) and cities as points (candidate). I want to associate each city to a zipcode. This works fine. However, I am getting a few that are being associated to the wrong state. So, I want to make sure that it finds the nearest neighbor but stays within the state. I have a state_abbr field in the zipcode data. But, like I said, when I set this field to the group by and run the workspace, everything comes out unmatched.

 

 

Is there a way to do this association without the neighbor finder?

 

 

Thanks

Best answer by takashi

Hi,

 

 

The "Group By" should work as expected if both base and candidate features have a common grouping attribute with the same name.

 

Do the cities (candidates)  have the "state_abbr" field?

 

 

Takashi
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.

3 replies

takashi
Celebrity
  • Best Answer
  • April 29, 2015
Hi,

 

 

The "Group By" should work as expected if both base and candidate features have a common grouping attribute with the same name.

 

Do the cities (candidates)  have the "state_abbr" field?

 

 

Takashi

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • April 29, 2015
yes, you must first associate both base and candidates the attribute(s) intended to be used by the "groupby".

 

 

You must first use for instnce a spatial relator or point on area to associate the states to both feature classes.

  • Author
  • April 30, 2015
Thanks! I did not have both base and candidate with the same name exactly since I thought it would just use the base.