Skip to content

Commit

Permalink
Remove annoying warning, favour Note in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed May 1, 2024
1 parent 311ad86 commit 416ddfe
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions R/linefuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,6 @@ use_rsgeo <- function(shp) {
line_segment_rsgeo <- function(l, n_segments) {

crs <- sf::st_crs(l)
# Test to see if the CRS is latlon or not and provide warning if so
if (sf::st_is_longlat(l)) {
warning(
"The CRS of the input object is latlon.\n",
"This may cause problems with the rsgeo implementation of line_segment()."
)
}

# extract geometry and convert to rsgeo
geo <- rsgeo::as_rsgeo(sf::st_geometry(l))
Expand Down

0 comments on commit 416ddfe

Please sign in to comment.