Joining Zonal Statististics to feature

739
3
10-21-2011 07:59 AM
JontyKnox
New Contributor II
Hi there,

So I have a DEM and a line .shp file. What I want to do is obtain the mean elevation for each line segment. Relatively simple, I just used the Zonal Statistics as table tool.

However I run into a problem when I try and join these average elevation values back to the original line data. There are no spatial coordinates in the table so I can't so a spatial join and when I conduct a normal Join, the Zonal Statistics Table has not maintained the original FID values from the line .shp file.

Any ideas on how I can solve this one?

Thanks,
- Jonty
0 Kudos
3 Replies
DanLee
by Esri Regular Contributor
Esri Regular Contributor
If you use your line features as the input features and the FID as the Zone Field, the output table should have the FID field. You should be able to use the FID field as the Join Field to link back to your lines.

If you use a different field as the Zone Field, then you still should use that field as the Join Field to link the two tables; remember that the Stats are not based on the FID in this case.

Does that make sense?
0 Kudos
JontyKnox
New Contributor II
Hey Dan,

That made sense, thanks for the help. It worked out well in the end.

Cheers,

Jonty
0 Kudos
DanLee
by Esri Regular Contributor
Esri Regular Contributor
Hi Jonty,

You are welcome. Thank you for letting me know. I am glad it worked for you.

cheers!  🙂
0 Kudos