Description Usage Arguments Value Examples
Get Points along Transects
1 | get_transect_points(linestring, distance, length)
|
linestring |
A data.frame of sf_LINESTRING |
distance |
A |
length |
A |
A list of geos_geometry POINTS along transects
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.