-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
summarise.sf running into a null polygon geometry causes R to crash #2053
Comments
Could you please report the output of |
I can see a segfault in s2 unary union. Am updating packages to get the freshest troubleverse versions, s2 as CRAN, sf local devel version. Will re-run with |
No problem with |
Off the top of my head, no, but I remember that the unary union was something I had to implement "by hand" (i.e., it's not in S2 proper) so it's likely an error of mine somewhere. I'll step through the example in the debugger later today 🙂 |
I get a similar error trying to do a summarise on a different data set with an empty geometry using a different dataset. |
@fmark Did you try to install the development version of s2 in which the problem was fixed? You give no details of your data set - GEOGCRS not PROJCRS, for example? |
It will be a few days until there are binaries, but the s2 version that fixes this is now on CRAN! |
Awesome! Thank you. |
Describe the bug
File containing an empty polygon geometry cause summarise to crash R
To Reproduce
If reporting a change from previous versions
Please read https://cran.r-project.org/web/packages/sf/news/news.html first.
Additional context
Ubuntu 20.04.5 LTS
R version 4.2.1 (2022-06-23)
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.1
The text was updated successfully, but these errors were encountered: