Skip to content

Commit

Permalink
added sf:: where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollist committed May 18, 2023
1 parent d43c77a commit 75c289a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/lakeFetch.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ lakeFetch <- function(inLakeMorpho, bearing, addLine = TRUE) {
lakeLinesSL_proj <- sf::st_transform(lakeLinesSL, st_crs(st_as_sf(inLakeMorpho$lake))$proj4string)

# Determine the longest
lakeLinesSL_proj <- st_as_sf(st_cast(st_cast(lakeLinesSL_proj, "MULTILINESTRING"),"LINESTRING"))
lakeLinesSL_proj <- sf::st_as_sf(sf::st_cast(sf::st_cast(lakeLinesSL_proj, "MULTILINESTRING"),"LINESTRING"))

result <- max(st_length(lakeLinesSL_proj))
if(capabilities("long.double")) {
Expand Down

0 comments on commit 75c289a

Please sign in to comment.