Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A airGRmaps
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar

La forge gitlab.irstea.fr sera définitivement arrêtée le 30 juin 2026. Nous vous invitons à migrer vos projets vers la forge INRAE. Vous trouverez plus de détails sur le blog de la forge INRAE.

  • HYCAR-HydroHYCAR-Hydro
  • airGRgalaxy
  • airGRmaps
  • Issues
  • #20
Closed
Open
Issue created Jan 22, 2026 by Delaigue Olivier@olivier.delaigueOwner

Migrate spatial code from sp/rgeos to sf

Migrate spatial code from sp/rgeos to sf We are migrating the spatial codebase from the legacy sp/rgeos stack to the sf package.
This is motivated by the deprecation of rgeos and the recommendation to use sf for vector data handling in R

Scope:

  • Remove remaining rgeos dependencies and replace them with sf equivalents
  • Gradually phase out sp usage where feasible, while keeping sp temporarily available if needed
  • Ensure all new spatial developments use sf only

Tasks:

  • Replace all rgeos calls (e.g. distance and centroid functions) with the corresponding sf functions
  • Convert Spatial* objects loaded from files to sf objects early in the workflow
  • Replace @data access patterns with sf/data.frame access ($, [[ ]])
  • Run the app and scripts to confirm there are no runtime errors related to spatial operations and that behaviour remains unchanged from a user point of view
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking