Closed Robinlovelace closed 3 years ago
Looking at the docs I don't think there is a function to get slopes directly from linestrings with xyz geometries, e.g.:
slope_xyz(slopes::lisbon_road_segment_3d)
should work.
This is working.
library(slopes)
slope_xyz(slopes::lisbon_road_segment_3d)
#> 1
#> 0.09501323
Great to see! We should now be able to continue with the evaluation based on the Seattle data (in addition to the existing data from Lisbon/Arc). Something like the following should work...
magnolia_3d = slope_3d(magnolia)
slope_xyz(magnolia_3d)
Plus more tests #18... Can find time these eve after ideas + :beers: !
Assuming you're happy with this @temospena, closing for now. We can always change function names.
Looking at the docs I don't think there is a function to get slopes directly from linestrings with xyz geometries, e.g.:
should work.