Skip to content

Commit

Permalink
sf 1.0 branch with s2 switched on; #1649
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Apr 17, 2021
1 parent 9aa8a62 commit dc4c8aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: sf
Version: 0.9-9
Version: 1.0-0
Title: Simple Features for R
Authors@R:
c(person(given = "Edzer",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# version 1.0-0

* use `s2` as default geometry back-end when coordinates are ellipsoidal, this can
be suppressed by setting environment variable `_SF_USE_S2` to `false`; #1649

# version 0.9-9

* `st_write` gains an argument `config_options` to set GDAL config options; #1618
Expand Down
2 changes: 1 addition & 1 deletion R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pathGrob <- NULL
}
} # nocov end
load_gdal()
assign(".sf.use_s2", Sys.getenv("_SF_USE_S2") == "true", envir=.sf_cache)
assign(".sf.use_s2", !(Sys.getenv("_SF_USE_S2") == "false"), envir=.sf_cache)
}

.onUnload = function(libname, pkgname) {
Expand Down

0 comments on commit dc4c8aa

Please sign in to comment.