I'm working on Qgis, I need the longitudinal section of a river. Thanks
Try the Profile from Line plugin. Make a line shapefile of the "longitudinal section" then run the plugin with your DEM and the line shape loaded. (Be sure to select the DEM raster in the plugin window). It creates a point layer with the DEM value as an attribute column.