Closed MatthieuStigler closed 2 years ago
Hi @MatthieuStigler thank you for reporting this bug. It was solved in the last commit. Let us know if the issue persists.
I see, the option I had in mind was rather to simply change if (maxFeatures > 5000)
to if (maxFeatures != 5000)
, allowing the user to choose the maxFeatures
herself, rather than silently setting maxFeatures
back to 5000.
Bonus point: if you do it this way, the error message is hilarious!
It looks like the argument
maxFeatures
inee_as_sf()
is assumed to be always bigger than 5000. If it is less than 5000, this will trigger an error message: Export too large. Specified 5000 features (max: 10) In the example below, the true FC has 5 features, and I am settingmaxFeatures = 10
, so this should work?Looking at
rgee:::ee_fc_to_sf_getInfo_batch
, the problem seems clear: it is assuming thatfc_size <- 5000
, and only computing the true value offc_size
whenmaxFeatures > 5000
.