Given a DEM (Digital Elevation Model) say in and a line (x1,y1) --> (x2,y2) (paired coordinates (x,y)), how can one calculate the elevation profile or cross-section projected on that line ?
I am looking for open source code that i can use in my project or pseudo-code that I can use as a guide.




