Spatial Join not working

3209
5
03-09-2012 06:05 AM
DarrenWiens2
MVP Honored Contributor
I've got stream reaches and basins. The basins have a mean slope class which I need to transfer to the stream reaches. Some stream reaches are outside the basin feature class, so those reaches need the closest basin's attributes.

Any ideas why the output of my Spatial Join (target features: reaches, join features: basins, join operation JOIN_ONE_TO_ONE, keep all target features: true, match option: closest, search radius: blank, distance field name: blank) turns out like the attached image? Both basins and reaches are colored by slope class.

edit: Could it be something to do with trying to join 20,000 basins to 250,000 stream reaches? Is there a limit to how many shapes are considered in a Spatial Join?
0 Kudos
5 Replies
DanLee
by Esri Regular Contributor
Esri Regular Contributor
I reproduced your case with just two polygons and a line inside one polygon, doing the same operation; the line finds the other polygon, not the one it's in. We will try to fix the bug. You may submit a bug if you would like to keep track on it. Thanks for bringing this up.

You may be able to work around it: using the INTERSECT option for streams inside the basins, and try CLOSEST for those outside. Sorry about the inconvenience.
0 Kudos
DarrenWiens2
MVP Honored Contributor
OK, at least I'm not going crazy. It seemed to work for all of the segments outside of polygons. Luckily, I only have 3 slope class (high, medium, low) so I was able to spatial select/field calculate the lines inside.
0 Kudos
DanLee
by Esri Regular Contributor
Esri Regular Contributor
I am glad to hear that. Thanks.
0 Kudos
DanMcCoy
Occasional Contributor III
Is there a bug number (NIM######) for this issue?

Thanks,

Dan
0 Kudos
DanLee
by Esri Regular Contributor
Esri Regular Contributor
We have just exported this issue from our internal record to Nimbus ID:NIM079131. Please feel free to add your test data to it so that we can make sure to test your case when we fix the issue.  Thanks.
0 Kudos