slope_raster function

Calculate the gradient of line segments from a raster dataset