r-spatial / sf

Simple Features for R
https://r-spatial.github.io/sf/
Other
1.33k stars 294 forks source link

address #2442 #2445

Open goergen95 opened 6 days ago

goergen95 commented 6 days ago

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 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.