-
Notifications
You must be signed in to change notification settings - Fork 299
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
Is st_voronoi using the envelope argument? #474
Comments
It does, but only if it is larger than the default envelope: pol = st_polygon(list(rbind(c(-10,-10), c(30,-10), c(30,30), c(-10,30), c(-10,-10))))
v <- st_voronoi(d, env)
plot(v, col = "grey", axes = TRUE) See lines 702-703 of geos_c.h. I will add this to the docs. |
OK. Is there a reason why it doesn't work for a smaller envelope? The default envelope seems to be bigger than necessary in many instances and I would have thought that including a smaller envelope should work the same as a larger envelope no? |
Will do, much appreciated! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps my expectations are wrong. I was assuming that including the
envelope
argument inst_voronoi()
would limit the resulting voronoi polygons to those in the envelope. Essentially, I thought the voronoi polygons would be clipped by the envelope. But I'm finding that the results with and without an envelope argument are the same, is this a bug or am I wrong about what it should be doing?Green is the convex hull and grey is the voronoi
The text was updated successfully, but these errors were encountered: