Skip to content

Commit

Permalink
Merge branch 'master' of github.com:itsleeds/slopes
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Nov 9, 2020
2 parents 2738046 + b1c10f7 commit e0efb70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/slopes.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ m2g_i = function(i, m_xyz, lonlat, fun = slope_matrix_weighted) {
#' and a raster dataset representing the terrain as inputs.
#' It returns the average gradient of each route feature.
#'
#' If calculating slopes associated with OSM data, the results may be better if the
#' network is first split-up, e.g. using the function [stplanr::rnet_breakup_vertices()] from the
#' [`stplanr`](https://docs.ropensci.org/stplanr/reference/rnet_breakup_vertices.html) package.
#' **Note:** The `r` object must have a geometry type of `LINESTRING`.
#' The `sf::st_cast()` function can convert from `MULTILINESTRING` (and other)
#' geometries to `LINESTRING`s as follows: `r_linestring = sf::st_cast(r, "LINESTRING")`.
Expand Down

0 comments on commit e0efb70

Please sign in to comment.