Select to view content in your preferred language

Update attributes based on nearest feature class

07-05-2022 10:04 AM
New Contributor II


I am new to using Arcpy and need assistance. I have two feature classes: Poles and Lights. I need to update the Lights attribute, year installed, based on the nearest (within a 30 feet radius) Poles year installed value. What is the easiest way to go about this? I was thinking about generating a Near Table and then using Object IDs, or maybe using the Buffer tool? 

Thank you for any help.

-JC from Boston

0 Kudos
1 Reply
by Anonymous User
Not applicable

Using the near table would be most effective, as the Buffer could potentially find multiple features.

After you use generate the Near table, create a join between Poles and Lights using the ID for the nearest feature identified by the table. This will also allow you to filter out outliers and duplicates.