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

seas_buffer = 0 flags all records #100

Open TheTams opened 5 months ago

TheTams commented 5 months ago

I have a GBIF download on which I am running coordinate cleaner. I tried running different seas_buffer distances to check my understanding of how it worked. The parameters for seas_buffer produce the number of flagged records below. The first three behave as expected, where a larger buffer results in fewer results flagged (marked as within the sea polygons), and the smaller the buffer the more are flagged.

seas_buffer = 2000 44204 seas_buffer = 5000 25969 seas_buffer = -2000 137447

This last one, where I tired a seas_buffer of 0, resulted in all of my occurrences being flagged. While of course, one would just not run the seas_buffer if you don't want one, this seemed like unexpected behaviour.

seas_buffer = 0 732977