Closed plantarum closed 11 months ago
The documentation for sp_occurrence suggests using an * as a wildcard:
https://github.com/rspatial/geodata/blob/6c784653de4b0d8000047e9118d7be21007e3685/man/sp_occurrence.Rd#L40
This doesn't work for me, and after some searching I think the API doesn't support wildcards https://discourse.gbif.org/t/searching-on-catalogue-number/3202
If I try the example from https://rspatial.org/sdm/2_sdm_occdata.html#importing-occurrence-data I get zero results:
library(geodata) sp_occurrence("solanum", "acaule*", download=FALSE)
[1] 0
Similarly,
sp_occurrence("solanum", "*", download=FALSE)
Perhaps I don't understand, as I'm not familiar with the GBIF API. But if this should work, I think there's something missing in the documentation, and possibly also the rspatial tutorial, to explain it.
Thanks. That used to work in some earlier version of the API (perhaps a long time ago). I have removed it from the docs.
The documentation for sp_occurrence suggests using an * as a wildcard:
https://github.com/rspatial/geodata/blob/6c784653de4b0d8000047e9118d7be21007e3685/man/sp_occurrence.Rd#L40
This doesn't work for me, and after some searching I think the API doesn't support wildcards https://discourse.gbif.org/t/searching-on-catalogue-number/3202
If I try the example from https://rspatial.org/sdm/2_sdm_occdata.html#importing-occurrence-data I get zero results:
Similarly,
Perhaps I don't understand, as I'm not familiar with the GBIF API. But if this should work, I think there's something missing in the documentation, and possibly also the rspatial tutorial, to explain it.