Generate a longitudinal profile and slopes (%) from a line layer (axes) and a DEM (local raster or WCS).
INPUTS
• Line layer: axis/axes to analyze.
• DEM: elevation raster (local or WCS).
• ID field (optional): identifier to preserve in outputs.
• Sampling step (m): distance between samples. 0 = DEM resolution. Recommended: minimum pixel size ×3.
• Reverse direction: changes the profile origin (start ↔ end).
OUTPUTS
• Table (no geometry): one row per sample with distance, elevation (RAW), smoothed elevation, slope (%), and SLOPE_TYPE (REAL/INTERP/EXTRAP/NODATA).
This table can be easily plotted with L-RAT’s Profile Slope Plotter algorithm.
• Segmented layer (lines): micro-segments between samples with elevation and slope attributes for cartographic/graphical outputs.
ADVANCED OPTIONS
• DEM sampling: Nearest / Bilinear / Cubic.
• Smoothing: None / Moving average / Moving median / Savitzky-Golay (window and order).
• Use M (if present): adds chainage (PK) values to the table (km and km+mmm format).
TIPS
• For consistent slopes, use data in a projected CRS (meters).
• If the DEM is noisy: try Moving median or Savitzky-Golay and/or increase the step size.
DETAILS
See the plugin README: Slope and Longitudinal Profile