You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon calling calc_indicators, I receive this error message:
Error in wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, :
Loop 0 is not valid: Edge 0 is degenerate (duplicate vertex)
Warning message:
In .compute(x[i, ], resources, fun, params, i) :
Error occured at polygon 1 with the following error message: Error in wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, :
Loop 0 is not valid: Edge 0 is degenerate (duplicate vertex)
.
Returning NAs.
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.
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.
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()
:The text was updated successfully, but these errors were encountered: