ropensci / CoordinateCleaner

Automated flagging of common spatial and temporal errors in biological and palaeontological collection data, for the use in conservation, ecology and palaeontology.
https://docs.ropensci.org/CoordinateCleaner/
79 stars 21 forks source link

Raster approximation (ras_create) results in out of bounds raster object (ras) when using the cc_outl function. #31

Closed winandh closed 4 years ago

winandh commented 5 years ago

When using the cc_outl (Outliers) function the ras_create function can create raster objects with an extent bigger than the original extent of the input file. Any occurrences at the edges (in my case at lat = -90) can cause out of bound issues. As far as I know this can only occur when the set of occurrences > 10000 and thinning is false.

azizka commented 4 years ago

Thanks. I added a test for out of bound issues to the function in version 2.0.14