Skip to content
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

R Session aborted when calculating a buffer from a vector #1331

Closed
Julian090601 opened this issue Oct 31, 2023 · 2 comments
Closed

R Session aborted when calculating a buffer from a vector #1331

Julian090601 opened this issue Oct 31, 2023 · 2 comments

Comments

@Julian090601
Copy link

Julian090601 commented Oct 31, 2023

Hi,

I have encountered some strange behaviour when calculating a buffer from a vector.

In R version 4.3.1, if the buffer size is larger than 54 metres, the session aborts immediately. However, when I do the same in R version 4.2.3, everything works fine. I have tested on several machines and always come up with the same result.

I have attached the polygon where the error occurs. I have checked the geometry and the crs but I cannot see any problems with them.

terra version: 1.7.55

Krycklan_2015_poly.zip

@rhijmans
Copy link
Member

rhijmans commented Nov 1, 2023

Thanks. I see that this works

library(terra)
v <- vect("Krycklan_2015_poly.shp")
b <- buffer(v, 75)

But that this crashes R

b <- buffer(v, 100)

@rhijmans
Copy link
Member

This example now works. I am not sure why it failed before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants