Select to view content in your preferred language

Transfer attributes without spatial join

6875
11
06-10-2014 06:21 PM
EdSaunders
Occasional Contributor
Hi all,

Apologies if this has been answered elsewhere.  I have some points that are located within polygons and need to transfer attributes from the polys to the points.  Is there a way to do this without using a spatial join?  Spatial joins create a new layer which is not preferable.  The best I can think of is using select by location somehow.  Anyone got any better ideas?

Thanks heaps,
Ed
Tags (2)
0 Kudos
11 Replies
RichardFairhurst
MVP Honored Contributor
For the code intended to shorten the match up of fields from the source to the target I had to change it as shown below to avoid causing an index out of range error:

if ObjectIDVal in valueDict:
    for n in range (1,len(updateFieldsList)):
        updateRow = valueDict[ObjectIDVal][n-1]
    updateRows.updateRow(updateRow)
0 Kudos
MichaelWalden1
New Contributor II

I came across this thread when searching for the tool I have used several times in the past.  It can update data based on spatial relationships as well as others.  There is some setup involved, but it will do the trick.

https://solutions.arcgis.com/shared/help/attribute-assistant/

0 Kudos