Select to view content in your preferred language

Spatial join tool vs. right-click spatial join producing different results?

2730
12
03-29-2012 10:11 AM
deleted-user-dp61qRbKUaMp
Deactivated User
Apologies in advance for the simple question...

I have a point feature class and a polygon feature class.
For each point, I'd like to simply a field based on the polygon that contains them.  This should just be a simple spatial join, no?

When I do the join by right-clicking on the point layer etc etc it seems to work ok.
However, when I do the join via the Spatial Join tool, something strange happens.  Each polygon appears to only be joined to one point.  That is, the fields of the polygon appear null.  Yet, the JOIN_FID field suggest the point was joined to a polygon.  The highlighted feature in the attached image shows this.

[ATTACH=CONFIG]13113[/ATTACH]

I don't suppose anyone can explain what I'm doing wrong?

I need to perform this with Python code, so that's why I was hoping to do the join via the toolbox.  If anyone knows how to access the "right-click join" via Python, that could also solve my problem.  Regardless, it would still be nice to understand what's going on here.

Thanks!
0 Kudos
12 Replies
DarinaTchountcheva
Frequent Contributor
I am experiencing the same behavior with SP3.
All Join_Count values are 1, but most of the output fields are empty. Two fields are populated, but all of the others are empty.

What would you suggest for a workaround until a patch is available?

Thank you!

Edit: Dan thank  you for the article. I saw your post when I submitted mine. I will try it!
0 Kudos
NobbirAhmed
Esri Alum
Please try with the patch that is coming within two weeks. Read sacdou (post# 9) - the link elaborates the issues solved by the patch:

http://support.esri.com/en/knowledge...s/detail/40174
0 Kudos
NobbirAhmed
Esri Alum
The Spatial Join tool patch is now available on resource center through this link:

http://resources.arcgis.com/content/patches-and-service-packs?fa=viewPatch&PID=160&MetaID=1857
0 Kudos