Skip to content

Commit

Permalink
add internal function to handle tiles that cross the anti-meridian #11
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-gruer committed Oct 22, 2019
1 parent 296de2c commit f0a75cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lon_wrap_180 <- function(sf) {
sf <- sp::as(sf,"Spatial")
sf <- sp::spTransform(sf,"+proj=longlat +datum=WGS84 +lon_wrap=180")
st_as_sf(sf)
}

0 comments on commit f0a75cc

Please sign in to comment.