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
Yes, I can see this, but wonder whether this is better than giving an error message telling that users should first convert data to an equidistant rectangular (+proj=eqc) projection to get meaningful regular and hexagonal samples.
It seems that there is a bug on
st_sample
whentype="hexagonal"
is performed over an unprojected polygon:This returns this error:
Whereas this works fine:
I think the issue comes from this line
sf/R/sample.R
Line 101 in b96ffe8
as it returns the area on m2, and then
sf/R/sample.R
Line 113 in b96ffe8
comes in meters as well, and finally
sf/R/sample.R
Lines 180 to 186 in b96ffe8
performs the operations mixing longitude and latitude with meters.
The text was updated successfully, but these errors were encountered: