generateCrossSections(
  streamChannel,
  getSatImage = TRUE,
  googleZoom = 14,
  cut1Dir = "W",
  cut2Dir = "E",
  xSectionLength = units::as_units(100, "m"),
  xSectionDensity = units::as_units(100, "m")
)

Arguments

streamChannel

The target stream reach. This should be a single contiguous streamline. No forking or gaps.

getSatImage

Logical (TRUE). This determines whether to download satellite imagery. It requires a Google Authentication Key. See ggmap::register_google() to set up satellite imagery.

googleZoom

Zoom level of satellite imagery. 15-17 typically work.

cut1Dir

Important! Set this to the cardinal direction ("W","N","E","S") of the upstream end of the target streamline.

cut2Dir

Depreciated. No longer used.

xSectionLength

Length of cross sections away from the channel. Consider using units::as_units(100,"m") format.

xSectionDensity

Gap space between cross sections.Consider using units::as_units(20,"m") format.

Value

transectObject. This object will be passed onto additional function in `ProcessSpace`. Initially it is returned with just, streamline, boundary of transects, transect lines, a bounding box, the retreived google or Stamen map, and the points where the cross sections cross the streamline.

Examples