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

Migrate geospatial tools from the rgdal ecosystem (rgdal, rgeos, maptools) depends to sf & terra #2914

Open
serbinsh opened this issue Feb 25, 2022 · 5 comments

Comments

@serbinsh
Copy link
Member

Description

Apparently, the R spatial world is shifting away from rgdal, rgeos, and maptools toward sf and terra. rgdal, rgeos, and maptools all scheduled for retirement at the end of 2023. Thanks for the heads up @infotroph

https://mobile.twitter.com/RogerBivand/status/1407705212538822656
https://cran.r-project.org/web/packages/rgdal/index.html

raster doesnt yet have a retirement date, but its suggested to move toward terra

Proposed Solution

So to me this means right now is a great time to overhaul our spatial dependencies. First start with simpler functions toward sf/terra (e.g. in data.remote) but we need to develop a list of all functions that use these tools and then schedule the order for updating.

Alternatives Considered

none

Additional Context

[](https://twitter.com/@RogerBivand)[Roger Bivand](https://twitter.com/@RogerBivand)Roger Bivand [@RogerBivand](https://twitter.com/@RogerBivand)
[@edzerpebesma](https://twitter.com/edzerpebesma) I'm not sure that taking over maintenance is a sensible use of effort (add maptools to that list). The main condition for this will be transition from raster to terra, as raster uses rgdal heavily. If sf/stars and terra become the main workflow bases, things get simplified.
TwitterTwitter | [Jun 23rd, 2021](https://mobile.twitter.com/RogerBivand/status/1407705212538822656)

Some other issues - if we need to buffer points to average pixels when extracting does terra support that like raster?

@Aariq
Copy link
Collaborator

Aariq commented Feb 2, 2023

related: #2913

@Aariq
Copy link
Collaborator

Aariq commented Feb 2, 2023

more details: https://github.com/r-spatial/evolution

@Aariq
Copy link
Collaborator

Aariq commented Apr 19, 2023

Appearances of rgdal:

layers <- rgdal::ogrListLayers(file.path(dir, i))
info <- rgdal::ogrInfo(file.path(dir, i), layers)

require(rgdal)

grib <- rgdal::readGDAL(paste0(working_directory,"/", file_name,".grib"), silent = TRUE)

Plus a LOT of scripts and vignettes

@Aariq
Copy link
Collaborator

Aariq commented Oct 2, 2023

It's October. rgdal will disappear from CRAN soon and CI will start breaking.

@mdietze
Copy link
Member

mdietze commented Oct 2, 2023

@DongchenZ @Shuohanz I'm assigning the GEFS part of this to you two, since you're actively working on that code already.

The NLCD and shp2kml bits are not core so could be temporarily deactiviated if no one steps up.

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

No branches or pull requests

3 participants