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
anglr breaks for sf geometry with no attributes #55
Comments
Thanks! An important silicate bug. It also needs more careful treatment because I use this faster_as_tibble hack in a few projects now. There's probably a better solution as per hypertidy/silicate#39 I haven't forced anglr to require a later version, but I'll try to synch these two soonish. |
And now really fixed. |
It's fixed but also has changed: library(sf)
library(anglr)
library(raster)
my_extent <- st_as_sf(as(extent(c(153.185183093, 153.19443135, -27.705328446, -27.6967222119999)),
"SpatialPolygons"))
DEL(my_extent, max_area = 0.008)
## to pass z down use copy_down
copy_down(DEL(my_extent, max_area = 0.008), z = 1) Also fwiw spex has this, which saves juggling a bit spex::spex(extent(0, 1, 0, 1), crs = "+proj=laea")
I'll close this but feel free to re-open or pursue otherwise if you have problems! |
Not sure if this is an
anglr
orsilicate
bug:I traced the error to
silicate:::sc_object.sf()
which doesn't handle this case, it creates a data.frame with 0 columns.The text was updated successfully, but these errors were encountered: