Extract elevation value from both ends of polyline?

Discussion created by mark909 on Dec 19, 2013
Latest reply on Dec 20, 2013 by Hornbydd
I have a network of polylines representing a stream network.

I also have a DEM.

What I want to do is calculate the gradient of each stream in the network so I need to calculate the elevation at either side of the polyline to give me an upstream elevation and a downstream elevation.

Is there a way that I can extract this data from the DEM?

Thanks for any help.