I'm having issues with getDynamicAlphaHull() for some species only (28 out of 1440 species). When running these specific species, I get the following error:
> getDynamicAlphaHull(df, coordHeaders=c('lon','lat'), clipToCoast = 'terrestrial', partCount = 10, fraction = 0.95)
Error in FUN(X[[i]], ...) : polygons require at least 4 points
I have checked the occurrence data and installed the package from Github. I'm thinking the error might be related to st_cast() in ah2sf() when the function converts LINESTRING to POLYGON objects. Is this a known issue ? Would it be possible to send a reproducible code for this error via e-mail ?
Thank you for this very useful package!
I'm having issues with getDynamicAlphaHull() for some species only (28 out of 1440 species). When running these specific species, I get the following error:
I have checked the occurrence data and installed the package from Github. I'm thinking the error might be related to st_cast() in ah2sf() when the function converts LINESTRING to POLYGON objects. Is this a known issue ? Would it be possible to send a reproducible code for this error via e-mail ?
Thank you in advance, Zoé