profile_length {geoprofiler}R Documentation

Length of Profile

Description

Length of Profile

Usage

profile_length(x, ...)

Arguments

x

sf line object

...

(optional) passed on to s2::s2_distance()

Value

units object when coordinate system is set.

See Also

profile_azimuth()

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 = 10000,
  crs = sf::st_crs("EPSG:26915")
) |>
  profile_line() |>
  profile_length()

[Package geoprofiler version 0.0.2 Index]