Populate field with an attribute from the closest feature from a different feature class

258
2
Jump to solution
05-10-2023 08:57 AM
MattCotterill
Occasional Contributor

I'm using ArcGIS Pro 3.1.1

I've created a new field, "nearest_address" for a polyline feature class called "ssMains". I'd like to populate that field with information from the field "SitusAddress" from a polygon feature class "Parcels" for the closest parcel to the beginning of each polyline.

Is there some python code I can run in the field calculator to do this?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor

a Spatial Join will do the trick without any coding https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm

You can use 'Closest' or 'Closest Geodesic' as options and set the field mapping to only transfer Address field from Parcels.

View solution in original post

2 Replies
DavidPike
MVP Frequent Contributor

a Spatial Join will do the trick without any coding https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm

You can use 'Closest' or 'Closest Geodesic' as options and set the field mapping to only transfer Address field from Parcels.

MattCotterill
Occasional Contributor

Thanks!

0 Kudos