We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reprex:
# upgrade packages remotes::install_github("ropensci/stplanr") #> Skipping install of 'stplanr' from a github remote, the SHA1 (f3c6c8d2) has not changed since last install. #> Use `force = TRUE` to force installation # packages library(sf) #> Linking to GEOS 3.7.1, GDAL 2.2.2, PROJ 4.9.2 library(stplanr) # fake data my_fake_linestring <- st_sf( data.frame(x = c(1, 2)), geometry = st_sfc( st_linestring(rbind(c(0, 0), c(1, 0), c(2, 0))), st_linestring(rbind(c(1, 0), c(1, 1))) ) ) plot(my_fake_linestring)
line2vertices(my_fake_linestring) #> Error in `[.data.frame`(x, coords): undefined columns selected
Created on 2020-10-05 by the reprex package (v0.3.0)
Taken from luukvdmeer/sfnetworks#73. It should be easy to fix and I'm working on a PR
The text was updated successfully, but these errors were encountered:
3d80f79
Many thanks @agila5, I never came across that edge case, great it now works for straight lines with only 2 points.
Sorry, something went wrong.
No branches or pull requests
Reprex:
Created on 2020-10-05 by the reprex package (v0.3.0)
Taken from luukvdmeer/sfnetworks#73. It should be easy to fix and I'm working on a PR
The text was updated successfully, but these errors were encountered: