add check for invalid geometries before st_filter#142
Conversation
|
@SarahAlidoost just a heads up that the Windows R-CMD-check is broken because of #126, so we currently expect it to fail |
fnattino
left a comment
There was a problem hiding this comment.
Thanks a lot @SarahAlidoost for this! As I tried to explain in #115, I think that even working with GEOS vs s2 would not help as invalid polygons would remain as such.
So I think we really have to use sf::st_make_valid().
Maybe this PR could still be useful as it is good to receive the warning if some of the retrieved geometries are invalid. I would however drop the sf::st_use_s2() and re-add instead a call to sf::st_make_valid()..
thanks for checking this. I applied your suggestion by introducing a util function. |
fnattino
left a comment
There was a problem hiding this comment.
Sorry for the late reply - this is good to go, thanks @SarahAlidoost!
What type of PR is this? (check all applicable)
Description
Related Issues
Added/updated tests?
We encourage you to keep the code coverage percentage at 75% and above.
have not been included
Added entry in changelog?
For user-facing changes, add a line describing the changes in NEWS.md