Skip to content

Commit

Permalink
update news
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Aug 25, 2020
1 parent 7a0907a commit 535c1af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# stplanr 0.7.0

- Issue with `line2points()` on some set-ups fixed (#418)
- Old `mapshape()`, `line_match()` and `gclip()` functions deprecated, maintained alternatives can now be found in other packages.
- `sp` objects updated for latest version of `sp` (#364)
- `sf` objects updated to support more recent CRS encoding (#393)
Expand Down
9 changes: 2 additions & 7 deletions R/od-funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,10 @@ line2df.Spatial <- function(l) {
#' lpoints <- line2points(l)
#' plot(l$geometry)
#' plot(lpoints, add = TRUE)
#' line2points(sf::st_linestring(matrix(c(0, 0, 2, 2), ncol = 2, byrow = TRUE)))
#' # test all vertices:
#' plot(l$geometry)
#' lpoints2 <- line2pointsn(l)
#' plot(lpoints2$geometry, add = TRUE)
#' # in sp data forms (may be deprecated)
#' # l <- routes_fast[2:4, ]
#' # lpoints <- line2points(l)
#' # lpoints2 <- line2pointsn(l)
#' # plot(lpoints, pch = lpoints$id, cex = lpoints$id)
#' # points(lpoints2)
#' @export
line2points <- function(l, ids = rep(1:nrow(l))) {
UseMethod("line2points")
Expand Down
9 changes: 2 additions & 7 deletions man/line2points.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 535c1af

Please sign in to comment.