Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace spatial packages to be deprecated by end of 2023 #44

Open
leppott opened this issue Apr 13, 2022 · 3 comments
Open

Replace spatial packages to be deprecated by end of 2023 #44

leppott opened this issue Apr 13, 2022 · 3 comments

Comments

@leppott
Copy link
Owner

leppott commented Apr 13, 2022

Describe the bug
The sp, rgdal, and maptools packages are to be deprecated at the end of 2023.

To Reproduce
Replace packages with some combination of functions from sf, GEOS, GDAL, or PROJ.

image

Expected behavior
NA

Additional context
https://www.r-bloggers.com/2022/04/r-spatial-evolution-retirement-of-rgdal-rgeos-and-maptools/

@leppott
Copy link
Owner Author

leppott commented Apr 13, 2022

Will need to fix before can submit to CRAN.

@leppott
Copy link
Owner Author

leppott commented Apr 5, 2024

Can grab the last version of rgdal (1.6.7) from the CRAN archive.

https://cran.r-project.org/src/contrib/Archive/rgdal/

@leppott
Copy link
Owner Author

leppott commented Apr 8, 2024

'strata' function is broken.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant