We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expected a buffer() around a multipoint to surround the entire object, but it seems to refer to just one (and not even a central) point:
buffer()
lux <- vect(system.file("ex/lux.shp", package="terra")) multipoint <- aggregate(centroids(lux)) buf <- buffer(multipoint, width = 10000) plot(multipoint, ext = ext(multipoint) + ext(buf)) plot(buf, add = TRUE)
Is this expected? Cheers!
The text was updated successfully, but these errors were encountered:
Not expected. It is a bug for lonlat points as it seems to work OK for planar points
crs(multipoint) = "local" buf <- buffer(multipoint, width = .1) plot(buf); points(multipoint)
Sorry, something went wrong.
b0e2dd8
This seems to work now:
library(terra) lux <- vect(system.file("ex/lux.shp", package="terra")) p <- centroids(lux) d <- 9000 bp <- buffer(p, width = d) m <- aggregate(p) ba <- buffer(m, width = d) plot(bp, border="light gray"); lines(ba, col="red", lwd=2); points(m)
No branches or pull requests
I expected a
buffer()
around a multipoint to surround the entire object, but it seems to refer to just one (and not even a central) point:Is this expected? Cheers!
The text was updated successfully, but these errors were encountered: