I set up this PR to address #2442. I am unsure where to best handle this, here or in s2? However, I think I am currently not able to contribute to s2, so here goes this PR.
Using mapply to iterate over multiple dTolerance values. Also works for a vector of length 1. Needed to wrap s2::s2_simplify() with sf::st_as_sfc() since the latter seems currently to be unable to coerce a list of s2_geography objects to sfc.
Hi :wave:
I set up this PR to address #2442. I am unsure where to best handle this, here or in
s2
? However, I think I am currently not able to contribute tos2
, so here goes this PR.Using mapply to iterate over multiple dTolerance values. Also works for a vector of length 1. Needed to wrap
s2::s2_simplify()
withsf::st_as_sfc()
since the latter seems currently to be unable to coerce a list ofs2_geography
objects tosfc
.