Writes the stream line, sampled points (with embedded cross-section plot balloons), transect lines, process-space polygons, and the detrended "height above water" raster overlay into a single KMZ file that can be opened in Google Earth.

exportSpatials(
  transectObject,
  sectionName = "temp",
  addXSectionPlots = TRUE,
  rasterPaletteLims = c(-2, 2)
)

Arguments

transectObject

Object created by generateCrossSections and enriched by the other pipeline functions (or by allAtOnce).

sectionName

Base name for the output files (<sectionName>.kmz, <sectionName>-Images/, <sectionName>_DetrendedRaster.tif).

addXSectionPlots

Logical (TRUE). Generate the per-transect cross-section PNGs and embed them in the point balloons. This is the slow part of the export (~1 second per transect).

rasterPaletteLims

Numeric length-2. The detrended raster overlay is clamped to this range (meters above/below the water surface) before coloring.

Value

Invisibly, the path to the KMZ file.