Skip to contents

Get Points across transects with elevation values

Usage

cross_section_pts(
  cs = NULL,
  crosswalk_id = NULL,
  points_per_cs = NULL,
  min_pts_per_cs = 10,
  dem =
    "/vsicurl/https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/TIFF/USGS_Seamless_DEM_13.vrt"
)

Arguments

cs

character, Hydrographic LINESTRING Network file path

crosswalk_id

character, ID column

points_per_cs

the desired number of points per CS. If NULL, then approximately 1 per grid cell resultion of DEM is selected.

min_pts_per_cs

Minimum number of points per cross section required.

dem

the DEM to extract data from

Value

sf object cross section points along the 'cs' linestring geometries