0

I'm trying to do a 1:1 spatial join between polygons created from the zonal max of a slope raster on the original zonal features. The problem is that the jagged edges cause the target features to overlap neighboring polygons as well so it just uses the first join feature in the 1:1 join.

Example

So basically, in this picture, I want to use a spatial join to add the grid code 300 from the blue layer to the polygon (red outline) on the right and 100 to the polygon on the left. The overlap from the jagged lines are causing it to assign whichever value is first instead of whichever one has the greatest overlap.

  • Back in the old days we called this CREATELABELS/IDENTITY/IDENTITY, but Dale now calls this Spaghetti and Meatballs analysis there was a follow-on blog post as well – Vince Mar 26 '15 at 19:22
  • Can't you just do a tabular join? Zonal Statistics as Table preserves the Ids in the output table so they can be joined back to the original. That is the way I always do this. – jbchurchill Mar 26 '15 at 20:05
  • I just ended up creating a new unique id and doing a tabular join. Thanks for the suggestions – user1270657 Mar 30 '15 at 15:22
0

In the screen shot you have given I think this can be easily done with a spatial join. You just need to set the match option to HAVE_THEIR_CENTER_IN. Be mindful that if you have tortuous shapes with holes in then this may fail for those scenarios.

0

I ended up creating a temporary unique id and doing a tabular join (Join Field) between the table I created via zonal statistics and the original polygon layer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.