get_transect_points: Get Points along Transects

Description Usage Arguments Value Examples

Description

Get Points along Transects

Usage

1
get_transect_points(linestring, distance, length)

Arguments

linestring

A data.frame of sf_LINESTRING

distance

A numeric indicating distance between transects

length

A numeric indicating the length of the transect

Value

A list of geos_geometry POINTS along transects

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
pts = matrix(c(170800,172000, 5410500, 5410400), 2)
line = sf::st_as_sf(sf::st_sfc(sf::st_linestring(pts), crs = 32612))

points <- get_transects(line, distance = 100, length = 500)

ele_crop <- terra::crop(terra::rast(ele), terra::vect(sf::st_buffer(line, 200)))
terra::plot(ele_crop)
plot(points)

## End(Not run)

joshualerickson/remr documentation built on Feb. 13, 2022, 4:08 a.m.