Samples the DEM along the stream line (1 point per foot) and builds the longitudinal elevation and percent-slope profile plots that appear in the PDF report and in the KMZ mainLine balloon.

longitudinalElevation(
  transectObject,
  rasterDir = "GeoData/Raster/ChildsDEM_m.tif",
  returnPlots = TRUE,
  returnData = TRUE,
  plotFileName = "longitudinalPlot.png",
  ...
)

Arguments

transectObject

Object created by the generateCrossSections function.

rasterDir

File path of the DEM raster (unused when the DEM is already stored on the transectObject by processSpace).

returnPlots

Logical; add $longProGraph1 (elevation) and $longProGraph2 (percent slope) ggplots to the object.

returnData

Logical; add $longitudinalPlotData.

plotFileName

Unused (kept for backward compatibility).

...

Ignored (accepted so pipeline wrappers can pass shared arguments through).

Value

transectObject with the longitudinal profile plots/data added.