Open mschmidty opened 4 months ago
I've had the same exact issue just now, but for some reason it produces a polygon when I restart R and run the code but not if I rerun the code within the same R session.
Also ran into the same issue and it was solved by restarting the R session. May be some kind of default memory limit?
When using
as.polygons
on a large raster, an emptySpatVector
is returned ifaggregate=TRUE
. Here is a reproducible example:I would expect that the aggregate=T example should return an error as well if it just returns an empty SpatVector.