Calculate Slopes of Roads, Rivers and Trajectories
Take a linestring and add a third (z) dimension to its coordinates
Extract elevations from coordinates
Get elevation data from hosted maptile services
Plot a digital elevation profile based on xyz data
Plot slope data for a 3d linestring with base R graphics
Calculate the sequential distances between sequential coordinate pairs
Calculate the gradient of line segments from a 3D matrix of coordinate...
Calculate the gradient of line segments from a raster dataset
Calculate the gradient of line segments from distance and elevation ve...
Extract slopes from xyz data frame or sf objects
slopes: Calculate Slopes of Roads, Rivers and Trajectories
Calculate summary values for 'Z' elevation attributes
Calculates the slope (longitudinal gradient or steepness) of linear geographic features such as roads (for more details, see Ariza-López et al. (2019) <doi:10.1038/s41597-019-0147-x>) and rivers (for more details, see Cohen et al. (2018) <doi:10.1016/j.jhydrol.2018.06.066>). It can use local Digital Elevation Model (DEM) data or download DEM data via the 'ceramic' package. The package also provides functions to add elevation data to linestrings and visualize elevation profiles.
Useful links