Open duccioa opened 3 years ago
The error message stems from sf in this line
@edzer?
Your geometry is of class GEOMETRY
, meaning a mix of things, in this case POLYGON
and MULTIPOLYGON
. Casting to MULTIPOLYGON
works:
mapview(st_cast(x, "MULTIPOLYGON"))
We now try to get the st_dimension()
of an object more carefully using try(sf::st_dimension())
. If we encounter an error, we st_cast()
which makes this example work. However, I don't know how robust this is for other (edge) cases...
Hi, I bumped into this error and I am not sure were it comes from:
This is the traceback:
With this, I can reproduce the error on my system:
This is my session's info:
Sorry for the length of these snapshots but I was not be able to locate the problem more precisely.
Thank you for your great work!