Skip to content

sf 1.0 will switch to using S2 geometry for ellipsoidal coordinates #1649

@edzer

Description

@edzer

As announced here in June last year, and also in the NEWS file around the same time, it is planned that where possible sf will use the spherical geometry operators of package s2 instead of the GEOS routines that assume projected coordinates. I've now run reverse dependency checks and found regressions in the following packages ("check" means: pkg maintainer informed):

  • csodata
  • eSDM
  • geomultistar
  • jpmesh
  • mapping
  • mapsf
  • MODIS
  • nhdplusTools
  • nhdR
  • osmextract
  • redist
  • rerddapXtracto (false positive: url timeout?)
  • rmapzen
  • sen2r
  • sfnetworks
  • slga
  • tmap
  • tmaptools

I have opened issues / written emails to all packages affected (issues mentioned below).

Testing your package while sf uses s2 can be done by setting

sf::sf_use_s2(TRUE)

or by specifying the environment variable _SF_USE_S2 to the value true (case sensitive); the latter can be done from within R with

Sys.setenv("_SF_USE_S2", "true")

but that needs to be done before sf is loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions