Antguz / rTLS

rTLS: Tools to Process Point Clouds Derived from Terrestrial Laser Scanning
https://antguz.github.io/rTLS
GNU General Public License v3.0
24 stars 6 forks source link

dependency on retiring spatial infrastructure packages #24

Open rsbivand opened 1 year ago

rsbivand commented 1 year ago

You will be aware, for example from: https://r-spatial.org/r/2022/04/12/evolution.html, https://r-spatial.org/r/2022/12/14/evolution2.html, https://r-spatial.org/r/2023/04/10/evolution3.html and https://rsbivand.github.io/csds_jan23/bivand_csds_ssg_230117.pdf and perhaps view https://www.youtube.com/watch?v=TlpjIqTPMCA&list=PLzREt6r1NenmWEidssmLm-VO_YmAh4pq9&index=1 that rgdal, rgeos and maptools will be retired this year, in October 2023.

rTLS imports 'rgeos' using rgeos::gArea rgeos::gDifference rgeos::gUnion as found by pkgapi, declared in NAMESPACE, in R/artificial_stand.R. If sp classes are not so important, you could conveniently move to sf, and use sf::st_area, sf::st_union and sf::st_difference, but do check that your geometries are still recognised as planar to use GEOS. A further alternative might be to use the geos package directly, but since sf has plot and sf::st_sample methods, maybe sf despite its size is best. sp is still actively maintained, so you'll have to consider what suits you best. Please fix best by June, latest October 2023.

rsbivand commented 1 year ago

@Antguz See also https://r-spatial.org/r/2023/05/15/evolution4.html. Please take urgent steps to resolve this issue. No positive changes appear in the repository. Less than three months remain to restore this package on CRAN with regard to these vulnerabilities.