Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf method for line_midpoint fails #360

Open
Robinlovelace opened this issue Nov 6, 2019 · 2 comments
Open

sf method for line_midpoint fails #360

Robinlovelace opened this issue Nov 6, 2019 · 2 comments

Comments

@Robinlovelace
Copy link
Member

As demonstrated below.

library(stplanr)
l = osm_net_example
l$length_units = sf::st_length(l)
l$length_ = as.numeric(l$length_units)
hist(log(l$length))
l_points4 = line_midpoint(l_longest) # fails
plot(l_points4)
@Robinlovelace
Copy link
Member Author

Related: an sf method for line_segment() is needed. Previous discussion on this: #99

@Robinlovelace
Copy link
Member Author

This is needed for #359 (the split apart part at least).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant