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

sits_get_data()

AndreSTavares opened this issue · comments

bug

Hello, the error occurs in sits version 1.4.2-1

Error in wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, :
Loop 0 is not valid: Edge 0 is degenerate (duplicate vertex)

Script

library(devtools)
library(sits)

shp_file <- file("/shape/amostras.shp")
cube <- readRDS(file = "
/cubos/cubo_2020_MODIS_terra.rds")

serie_temporal <- sits_get_data(
cube = cube,
samples = "~/shape/amostras.shp",
shp_attr = "label",
multicores = 32,
progress = TRUE)

Already solved in dev branch. Thanks!