We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e8f41 commit 2299f4aCopy full SHA for 2299f4a
R/valid.R
@@ -80,7 +80,7 @@ st_make_valid.sfc = function(x, ..., oriented = FALSE, s2_options = s2::s2_optio
80
s2_options = s2::s2_options(snap = s2::s2_snap_precision(st_precision(x)))
81
s2 = s2::s2_rebuild(s2, s2_options)
82
st_as_sfc(s2, crs = crs)
83
- } else if (as.package_version(sf_extSoftVersion()["GEOS"]) < "3.8.0") {
+ } else if (compareVersion(CPL_geos_version(), "3.8.0") > -1) {
84
if (!requireNamespace("lwgeom", quietly = TRUE))
85
stop("package lwgeom required, please install it first") # nocov
86
st_sfc(lwgeom::lwgeom_make_valid(x), crs = crs)
0 commit comments