profile_points {geoprofiler} | R Documentation |
Profile End Point
Description
Create a end point along a profile line starting at a point with a defined direction and length.
Usage
profile_points(
start,
profile.azimuth,
profile.length,
crs = st_crs(start),
return.sf = TRUE
)
Arguments
start |
|
profile.azimuth |
numeric or |
profile.length |
numeric or |
crs |
Coordinate reference system. Should be parsed by |
return.sf |
logical. Should the profile points be returned as a |
Value
class depends on return.sf
.
Note
Use metric values (meters, kilometers, etc) in case of a projected coordinate reference frame, and degree when geographical coordinate reference frame.
Examples
p1 <- data.frame(lon = -90.8, lat = 48.6) |>
sf::st_as_sf(coords = c("lon", "lat"), crs = "WGS84")
profile_points(p1,
profile.azimuth = 135, profile.length = units::set_units(10, "km"),
crs = sf::st_crs("EPSG:26915")
)
[Package geoprofiler version 0.0.2 Index]