Closed karpfen closed 10 months ago
I think the issue is the with the polygon you created, which is invalid. The second and third vertex are identical. If you fix it the indicator calculation works.
With the latest changes, this now also works for the polygons I sent you via email, thanks :)
I'm trying to calculate the TEOW Biome coverage, but my script fails in some specific regions. One of them can be reproduced by this snippet:
Upon calling
calc_indicators
, I receive this error message:I already checked if there are invalid geometries involved. The TEOW dataset does contain one, but it is not in the area of the polygon in question. I also fixed it for good measure, but the issue still exists.
A workaround is to set
sf_use_s2(FALSE)
, but that's also not ideal.output of
sessionInfo()
: