[GIS] Adding attributes to line feature according to adjacent polygon

arcgis-10.2arcgis-desktopattribute-tablespatial-join

I'm trying to add attributes to a field in a polylines attribute table according to directly adjacent polygons….

Copy attributes adjacent polys

In the pic, the purple line has an empty field labelled 'FG' and I'd like to fill it with whatever is in the 'FVG' field in the adjacent polygon that shares the boundary ie. 'Rf'.. 'Mit'…'Con'. The purple polyline is split into segments at each polygon boundary.

This should be quite simple but can't for the life of me figure it out. Is it spatial join I'm after? Haven't had much experience with that

Best Answer

Long, but robust:

  1. Add 2 fields to line table X, Y
  2. Calculate geometry midpoint X and Y
  3. Convert table to table and use it for Add XY data
  4. Convert XY to points
  5. Spatial join points and polygons

In points table populate FG by FGV values. Transfer results back to your lines. I assume you have UniqID field in their table

Related Question