e-sensing / sits

Satellite image time series in R

Home Page:https://e-sensing.github.io/sitsbook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with spherical geometry when extracting MODIS time series using sf

gilbertocamara opened this issue · comments

Describe the bug
When extracting MODIS time series using sf using S2 spherical geometry, a problem appears that leads to an error.

To Reproduce

If reporting a change from previous versions

In the latest version of sits, time series extraction is done based on chunks. In this case, the sf "intersects" operation gives an error when extracting a time series for some points. "Edge is degenerate".

Additional context
This appears to be a problem with S2 geometry operations in sf. It is advisable to use planar operations for the intersect operation.