You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data_strata<- strata(data[1:5, ], col_lat, col_lon)
Error in UseMethod("as_s2_geography") :
no applicable method for 'as_s2_geography' applied to an object of class "c('SpatialPolygonsDataFrame', 'SpatialPolygons', 'Spatial')"
Assume it is related to the move away from the rgdal package. But MazamaSpatialUtils rather than rgdal is used in the code.
Describe the bug
The
sp
,rgdal
, andmaptools
packages are to be deprecated at the end of 2023.To Reproduce
Replace packages with some combination of functions from
sf
,GEOS
,GDAL
, orPROJ
.Expected behavior
NA
Additional context
https://www.r-bloggers.com/2022/04/r-spatial-evolution-retirement-of-rgdal-rgeos-and-maptools/
The text was updated successfully, but these errors were encountered: