I have a polyline shapefile with streams. I would like to turn this to a raster where there would be a cumulative length sum value in each pixel moving downstream. In other words, this would be an downstream increasing cumulative sum based on polyline length.
Unfortunately though, I'm unable to use DEM for calculating flow direction and do this through normal flow accumulation as the stream shapefile and DEM are slightly mismatching. Another problem is that the flow directions are set to both directions of the lines. Thus, I would like to first reset the flow direction of the polylines and then calculate the cumulative sum straight from the polyline file.
I would need 2 tools for this>
- Tool that would redirect the line direction based on the DEM value of the two end points
- Tool that would calculate cumulative length from the redirected polyline features.
Is anything like these existing?